Function useDebounce

  • Create a debounced function. Uses

    See

    useEventHandler so no need for useCallback even when using state/props inside

    Type Parameters

    • In extends unknown[]

    Parameters

    • fn: Fn<In, void>

      the function to debounce

    • ms: number

      number of milliseconds to delay each call

    Returns Fn<In, void>

    new debounced function

Generated using TypeDoc