useDebouncedCallback
API
import useDebouncedCallback from '@restart/hooks/useDebouncedCallback'
useDebouncedCallback
<TCallback>(fn: TCallback, delay: number) => TCallbackCreates a debounced function that will invoke the input function after the specified delay.
Parameters
fn
TCallbacka function that will be debounced
delay
numberThe milliseconds delay before invoking the function
Return Value TCallback