TanStack
Debouncer API Reference

OctaneDebouncerOptions

Defined in: debouncer/useDebouncer.ts:16

Options for useDebouncer, including owner cleanup.

Extends

  • DebouncerOptions<TFn>

Type Parameters

TFn

TFn extends AnyFunction

TSelected

TSelected = { }

Properties

onUnmount?

ts
optional onUnmount?: (instance) => void;

Defined in: debouncer/useDebouncer.ts:21

Replaces default cleanup. Use this to flush, cancel, or stop pending work.

Parameters

instance

OctaneDebouncer<TFn, TSelected>

Returns

void