本页还没有译文
本页 27 段还没译成日本語,下面显示的是英文原文。QueuedSignal
还没翻译译自英文(tanstack.com)本页 27 段都还没译
Defined in: queuer/injectQueuedSignal.ts:7
Type Parameters
TValue
TValue
TSelected
TSelected = {
}
QueuedSignal(): TValue[];Defined in: queuer/injectQueuedSignal.ts:8
Returns
TValue[]
Properties
addItem
addItem: (item, position?, runOnItemsChange?) => boolean;Defined in: queuer/injectQueuedSignal.ts:9
Adds an item to the queue. If the queue is full, the item is rejected and onReject is called.
undefined cannot be queued (it is the internal "no item" sentinel) and is always rejected.
Items can be inserted based on priority or at the front/back depending on configuration.
Returns true if the item was added, false if the queue is full.
Example usage:
queuer.addItem('task');
queuer.addItem('task2', 'front');Parameters
item
TValue
position?
QueuePosition
runOnItemsChange?
boolean
Returns
boolean
queuer
queuer: AngularQueuer<TValue, TSelected>;Defined in: queuer/injectQueuedSignal.ts:10
AI 翻译查看英文原文