React hook that delays invoking a function until after wait milliseconds have elapsed since the last time the debounced function was invoked.
The third argument is the array of values that the debounce depends on, in the same manner as useEffect. The debounce timeout will start when one of the values changes.
fn: Function
- function that will be called;ms: number
- delay in milliseconds;deps: DependencyList
- array of values that the debounce depends on, in the same manner as useEffect;isReady: ()=>boolean|null
- function returning current debounce state:false
- pendingtrue
- callednull
- cancelledcancel: ()=>void
- cancel the debounceRun the following command: