function injectQueuedValue<TValue, TSelected>(
value,
options?,
selector?): QueuedSignal<TValue, TSelected>;
Defined in: queuer/injectQueuedValue.ts:31
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 function returns a tuple containing:
TValue
TSelected extends Pick<QueuerState<TValue>, "items"> = Pick<QueuerState<TValue>, "items">
Signal<TValue>
QueuerOptions<TValue>
(state) => TSelected
QueuedSignal<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?): QueuedSignal<TValue, TSelected>;
Defined in: queuer/injectQueuedValue.ts:42
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 function returns a tuple containing:
TValue
TSelected extends Pick<QueuerState<TValue>, "items"> = Pick<QueuerState<TValue>, "items">
Signal<TValue>
TValue
QueuerOptions<TValue>
(state) => TSelected
QueuedSignal<TValue, TSelected>
const initialValue = signal('initial')
const queued = injectQueuedValue(initialValue, {
wait: 500,
started: true,
})
// Add changes to the queue
queued.addItem('new value')