useDebounceCallback
FunctionuseDebounceCallback<T>(fn: T, delay: number, options?: DebounceSettings): DebouncedFunc<T>Custom hook for debouncing a callback function
Type Parameters
| Parameter | Type |
|---|---|
T | (args: any[]) => any |
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
fn | T | | The callback function to be debounced. |
delay | number | 200 | The delay in milliseconds before the callback is invoked (default is |
options | DebounceSettings | default | Options to control the behavior of the debounced function. example: |
Returns
DebouncedFunc<T>