Performance & Optimization
useDebounce
About
Debounce hook for react. Internally, it uses lodash debounce.
Examples
Arguments
| Argument | Type | Description | Default value | 
|---|---|---|---|
| callback | Function | The function to debounce | undefined | 
| wait | number | The duration to debounce in milliseconds | undefined | 
| options | Object | options to pass into lodash's debounce | 
Return Value
| Name | Type | Description | 
|---|---|---|
| debouncedFunction | Function | The debounced function |