function injectQueuedValue<TValue, TSelected>(
value,
options?,
selector?): QueuedValueSignal<TValue, TSelected>;Defined in: queuer/injectQueuedValue.ts:48
An Angular function that creates a queued value that processes state changes in order with an optional delay. This function uses injectQueuedSignal internally to manage a queue of state changes and apply them sequentially.
The queued value will process changes in the order they are received, with optional delays between processing each change. This is useful for handling state updates that need to be processed in a specific order, like animations or sequential UI updates.
The returned signal provides the most recently processed value. Before the queue processes an item, it provides the explicit initial value or the source's initial value. Source reads are deferred until the signal is read or Angular runs its effect, so required inputs can be bound before their values are read.
Use queued.addItem(...) to add a value and queued.queuer to control the queue. Pending items are available through queued.queuer.state().items with the default selector.
Pass an options object as the third argument to supply an object or function as the initial value. When those options are undefined or a factory, pass a fourth selector argument (undefined is allowed) to distinguish the initial-value form from options plus a selector.
TValue
TSelected extends Pick<QueuerState<TValue>, "items"> = Pick<QueuerState<TValue>, "items">
Signal<TValue>
AngularPacerOptions<AngularQueuerOptions<TValue, TSelected>>
(state) => TSelected
QueuedValueSignal<TValue, TSelected>
const initialValue = signal('initial')
const queued = injectQueuedValue(initialValue, {
wait: 500,
started: true,
})
// Add changes to the queue
queued.addItem('new value')function injectQueuedValue<TValue, TSelected>(
value,
initialValue,
options?,
selector?): QueuedValueSignal<TValue, TSelected>;Defined in: queuer/injectQueuedValue.ts:59
An Angular function that creates a queued value that processes state changes in order with an optional delay. This function uses injectQueuedSignal internally to manage a queue of state changes and apply them sequentially.
The queued value will process changes in the order they are received, with optional delays between processing each change. This is useful for handling state updates that need to be processed in a specific order, like animations or sequential UI updates.
The returned signal provides the most recently processed value. Before the queue processes an item, it provides the explicit initial value or the source's initial value. Source reads are deferred until the signal is read or Angular runs its effect, so required inputs can be bound before their values are read.
Use queued.addItem(...) to add a value and queued.queuer to control the queue. Pending items are available through queued.queuer.state().items with the default selector.
Pass an options object as the third argument to supply an object or function as the initial value. When those options are undefined or a factory, pass a fourth selector argument (undefined is allowed) to distinguish the initial-value form from options plus a selector.
TValue
TSelected extends Pick<QueuerState<TValue>, "items"> = Pick<QueuerState<TValue>, "items">
Signal<TValue>
Extract<TValue, PrimitiveInitialValue>
AngularQueuerOptions<TValue, TSelected>
(state) => TSelected
QueuedValueSignal<TValue, TSelected>
const initialValue = signal('initial')
const queued = injectQueuedValue(initialValue, {
wait: 500,
started: true,
})
// Add changes to the queue
queued.addItem('new value')function injectQueuedValue<TValue, TSelected>(
value,
initialValue,
options,
selector?): QueuedValueSignal<TValue, TSelected>;Defined in: queuer/injectQueuedValue.ts:71
An Angular function that creates a queued value that processes state changes in order with an optional delay. This function uses injectQueuedSignal internally to manage a queue of state changes and apply them sequentially.
The queued value will process changes in the order they are received, with optional delays between processing each change. This is useful for handling state updates that need to be processed in a specific order, like animations or sequential UI updates.
The returned signal provides the most recently processed value. Before the queue processes an item, it provides the explicit initial value or the source's initial value. Source reads are deferred until the signal is read or Angular runs its effect, so required inputs can be bound before their values are read.
Use queued.addItem(...) to add a value and queued.queuer to control the queue. Pending items are available through queued.queuer.state().items with the default selector.
Pass an options object as the third argument to supply an object or function as the initial value. When those options are undefined or a factory, pass a fourth selector argument (undefined is allowed) to distinguish the initial-value form from options plus a selector.
TValue
TSelected extends Pick<QueuerState<TValue>, "items"> = Pick<QueuerState<TValue>, "items">
Signal<TValue>
TValue
AngularQueuerOptions<TValue, TSelected>
(state) => TSelected
QueuedValueSignal<TValue, TSelected>
const initialValue = signal('initial')
const queued = injectQueuedValue(initialValue, {
wait: 500,
started: true,
})
// Add changes to the queue
queued.addItem('new value')function injectQueuedValue<TValue, TSelected>(
value,
initialValue,
options,
selector): QueuedValueSignal<TValue, TSelected>;Defined in: queuer/injectQueuedValue.ts:83
An Angular function that creates a queued value that processes state changes in order with an optional delay. This function uses injectQueuedSignal internally to manage a queue of state changes and apply them sequentially.
The queued value will process changes in the order they are received, with optional delays between processing each change. This is useful for handling state updates that need to be processed in a specific order, like animations or sequential UI updates.
The returned signal provides the most recently processed value. Before the queue processes an item, it provides the explicit initial value or the source's initial value. Source reads are deferred until the signal is read or Angular runs its effect, so required inputs can be bound before their values are read.
Use queued.addItem(...) to add a value and queued.queuer to control the queue. Pending items are available through queued.queuer.state().items with the default selector.
Pass an options object as the third argument to supply an object or function as the initial value. When those options are undefined or a factory, pass a fourth selector argument (undefined is allowed) to distinguish the initial-value form from options plus a selector.
TValue
TSelected extends Pick<QueuerState<TValue>, "items"> = Pick<QueuerState<TValue>, "items">
Signal<TValue>
TValue
| AngularPacerOptions<AngularQueuerOptions<TValue, TSelected>> | undefined
((state) => TSelected) | undefined
QueuedValueSignal<TValue, TSelected>
const initialValue = signal('initial')
const queued = injectQueuedValue(initialValue, {
wait: 500,
started: true,
})
// Add changes to the queue
queued.addItem('new value')