Hooks
useDebounceCallback
A custom hook that debounces a callback function, executing it after the specified delay.
useDebounceCallback
A custom hook that debounces a callback function, executing it after the specified delay.
Usage
API
useDebounceCallback
Parameters
Name | Type | Description |
---|---|---|
callback | T | The callback function to debounce. |
delay | number | The debounce delay in milliseconds. |
Returns
Name | Type | Description |
---|---|---|
debouncedCallback | (...args: Parameters<T>) => void | A debounced version of the callback function. |