Content
useDebounceCallback
A hook that returns a debounced version of a callback function.
useDebounceCallback
Usage
API
useDebounceCallback
Returns a debounced version of the provided callback function.
Parameters
Name | Type | Description |
---|---|---|
callback | T | The callback function that depends on external values. |
delay | number | The debounce delay in milliseconds. |
Returns
Name | Type | Description |
---|---|---|
callback | T | A debounced version of the provided callback function. |