Skip to main content

AlpineAsyncQueuer

Defined in: async-queuer/createAsyncQueuer.ts:21

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

Extends

  • Omit<AsyncQueuer<TValue>, "options" | "setOptions">

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

options

options: AsyncQueuerOptions<TValue> & AlpineAsyncQueuerOptions<TValue, TSelected>;

Defined in: async-queuer/createAsyncQueuer.ts:25


setOptions

setOptions: (options) => void;

Defined in: async-queuer/createAsyncQueuer.ts:27

Parameters

options

Partial<AlpineAsyncQueuerOptions<TValue, TSelected>>

Returns

void


state

readonly state: Readonly<TSelected>;

Defined in: async-queuer/createAsyncQueuer.ts:33

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


subscribe

subscribe: AlpinePacerSubscribe<AsyncQueuerState<TValue>>;

Defined in: async-queuer/createAsyncQueuer.ts:31

Subscribes a child owner to selected state with automatic cleanup.