useDebounceCallback
Debounces a callback, executing it only after a specified delay.
useDebounceCallback
Installation
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. |