TanStack
Debouncer API Reference

VueAsyncDebouncer

Defined in: async-debouncer/useAsyncDebouncer.ts:23

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> & VueAsyncDebouncerOptions<TFn, TSelected>;

Defined in: async-debouncer/useAsyncDebouncer.ts:27


setOptions

ts
setOptions: (options) => void;

Defined in: async-debouncer/useAsyncDebouncer.ts:29

Parameters

options

Partial<VueAsyncDebouncerOptions<TFn, TSelected>>

Returns

void


state

ts
readonly state: Readonly<ShallowRef<TSelected>>;

Defined in: async-debouncer/useAsyncDebouncer.ts:35

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


Subscribe

ts
Subscribe: VuePacerSubscribe<AsyncDebouncerState<TFn>>;

Defined in: async-debouncer/useAsyncDebouncer.ts:33

Subscribes a scoped slot to state without re-rendering the utility owner.