Interface: UseDebouncedCallbackOptions
Defined in: use-debounced-callback.ts:6
Options for useDebouncedCallback.
Properties
flushOnUnmount?
optionalflushOnUnmount?:boolean
Defined in: use-debounced-callback.ts:12
Invoke any pending call (instead of discarding it) when the component unmounts. Default is false.
leading?
optionalleading?:boolean
Defined in: use-debounced-callback.ts:8
Invoke the callback immediately when a burst of calls starts. Default is false.
trailing?
optionaltrailing?:boolean
Defined in: use-debounced-callback.ts:10
Invoke the callback with the latest arguments once the calls pause. Default is true.