TanStack
Debouncer API Reference

LitAsyncDebouncerOptions

Defined in: async-debouncer/createAsyncDebouncer.ts:14

Options for createAsyncDebouncer, including owner cleanup.

Extends

  • AsyncDebouncerOptions<TFn>

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

onUnmount?

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

Defined in: async-debouncer/createAsyncDebouncer.ts:19

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

Parameters

instance

LitAsyncDebouncer<TFn, TSelected>

Returns

void