Skip to main content

LitThrottler

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

Defined in: throttler/createThrottler.ts:23

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

Defined in: throttler/createThrottler.ts:27


setOptions

setOptions: (options) => void;

Defined in: throttler/createThrottler.ts:28

Parameters

options

Partial<LitThrottlerOptions<TFn, TSelected>>

Returns

void


state

readonly state: Readonly<TSelected>;

Defined in: throttler/createThrottler.ts:32

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


subscribe

subscribe: LitPacerSubscribe<ThrottlerState<TFn>>;

Defined in: throttler/createThrottler.ts:30

Subscribes a child owner to selected state with automatic cleanup.