TanStack
Debouncer API Reference

VueDebouncer

Defined in: debouncer/useDebouncer.ts:23

A Debouncer with framework-reactive selected state. All core methods remain available.

Extends

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

Type Parameters

TFn

TFn extends AnyFunction

TSelected

TSelected = { }

Properties

options

ts
options: DebouncerOptions<TFn> & VueDebouncerOptions<TFn, TSelected>;

Defined in: debouncer/useDebouncer.ts:27


setOptions

ts
setOptions: (options) => void;

Defined in: debouncer/useDebouncer.ts:28

Parameters

options

Partial<VueDebouncerOptions<TFn, TSelected>>

Returns

void


state

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

Defined in: debouncer/useDebouncer.ts:32

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


Subscribe

ts
Subscribe: VuePacerSubscribe<DebouncerState<TFn>>;

Defined in: debouncer/useDebouncer.ts:30

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