Skip to main content

OctaneQueuer

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

Defined in: queuer/useQueuer.ts:21

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

Extends

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

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

options

options: QueuerOptions<TValue> & OctaneQueuerOptions<TValue, TSelected>;

Defined in: queuer/useQueuer.ts:25


setOptions

setOptions: (options) => void;

Defined in: queuer/useQueuer.ts:26

Parameters

options

Partial<OctaneQueuerOptions<TValue, TSelected>>

Returns

void


state

readonly state: Readonly<TSelected>;

Defined in: queuer/useQueuer.ts:30

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


Subscribe

Subscribe: OctanePacerSubscribe<QueuerState<TValue>>;

Defined in: queuer/useQueuer.ts:28

Selects state in a child without subscribing the utility owner.