Same as useCallback
How long to delay calling callback in milliseconds
Same as useCallback
Whether or not to cancel the existing callback or preserve it
If set to cancel, any existing callback will be cancelled and
the timer will reset, delaying the total time before it executes.
If set to preserve, the existing callback is kept and the new
call is ignored.
Generated using TypeDoc
Similar to
useCallbackbut adds a delay so that the callback fires only afterdelaymilliseconds.