Skip to main content

Interface: UseDebouncedCallbackOptions

Defined in: use-debounced-callback.ts:6

Options for useDebouncedCallback.

Properties​

flushOnUnmount?​

optional flushOnUnmount?: boolean

Defined in: use-debounced-callback.ts:12

Invoke any pending call (instead of discarding it) when the component unmounts. Default is false.


leading?​

optional leading?: boolean

Defined in: use-debounced-callback.ts:8

Invoke the callback immediately when a burst of calls starts. Default is false.


trailing?​

optional trailing?: boolean

Defined in: use-debounced-callback.ts:10

Invoke the callback with the latest arguments once the calls pause. Default is true.