Skip to main content

AlpineThrottler

还没翻译译自英文(tanstack.com)本页 26 段都还没译

Defined in: throttler/createThrottler.ts:22

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

Extends

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

Type Parameters

TFn

TFn extends AnyFunction

TSelected

TSelected = { }

Properties

options

options: ThrottlerOptions<TFn> & AlpineThrottlerOptions<TFn, TSelected>;

Defined in: throttler/createThrottler.ts:26


setOptions

setOptions: (options) => void;

Defined in: throttler/createThrottler.ts:27

Parameters

options

Partial<AlpineThrottlerOptions<TFn, TSelected>>

Returns

void


state

readonly state: Readonly<TSelected>;

Defined in: throttler/createThrottler.ts:31

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


subscribe

subscribe: AlpinePacerSubscribe<ThrottlerState<TFn>>;

Defined in: throttler/createThrottler.ts:29

Subscribes a child owner to selected state with automatic cleanup.