Skip to main content

QueuerController

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

Defined in: queuer/QueuerController.ts:8

Owns a Queuer for a Lit host. Access core methods and selected state through pacer.

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Constructors

Constructor

new QueuerController<TValue, TSelected>(
   host,
   fn,
   options?,
selector?): QueuerController<TValue, TSelected>;

Defined in: queuer/QueuerController.ts:10

Parameters

host

ReactiveControllerHost

fn

(item) => void

options?

LitPacerOptions<LitQueuerOptions<TValue, TSelected>> = {}

selector?

(state) => TSelected

Returns

QueuerController<TValue, TSelected>

Properties

pacer

readonly pacer: LitQueuer<TValue, TSelected>;

Defined in: queuer/QueuerController.ts:9

Accessors

state

Get Signature

get state(): Readonly<TSelected>;

Defined in: queuer/QueuerController.ts:20

Selected reactive state. Reading this property participates in host rendering.

Returns

Readonly<TSelected>