Function useDebouncedCallback
useDebouncedCallback<T extends (...args: value[]) => ReturnType<T>>( func: T, wait?: number, options?: Options,): DebouncedState<T> Type Parameters
- T extends (...args: value[]) => ReturnType<T>
Parameters
- func: T
Optionalwait: numberOptionaloptions: Options
- An object containing the debounced callback and utility functions.
Returns a debounced version of the provided callback function.