TanStack
Debouncer API Reference

AlpineAsyncDebouncer

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

An AsyncDebouncer with framework-reactive selected state. All core methods remain available.

Extends

  • Omit<AsyncDebouncer<TFn>, "options" | "setOptions">

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

options

ts
options: AsyncDebouncerOptions<TFn> & AlpineAsyncDebouncerOptions<TFn, TSelected>;

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


setOptions

ts
setOptions: (options) => void;

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

Parameters

options

Partial<AlpineAsyncDebouncerOptions<TFn, TSelected>>

Returns

void


state

ts
readonly state: Readonly<TSelected>;

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

Selected state. Pass a selector to opt in; the default selection is an empty object.


subscribe

ts
subscribe: AlpinePacerSubscribe<AsyncDebouncerState<TFn>>;

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

Subscribes a child owner to selected state with automatic cleanup.