Open History to see the last commit
Defined in: async-batcher/createAsyncBatcher.ts:22
An AsyncBatcher with framework-reactive selected state. All core methods remain available.
Extends#
Omit<AsyncBatcher<TValue>,"options"|"setOptions">
Type Parameters#
TValue#
TValue
TSelected#
TSelected = {
}
Properties#
options#
options: Omit<Required<AsyncBatcherOptions<TValue>>,
| "initialState"
| "key"
| "onError"
| "onSettled"
| "onSuccess"
| "onItemsChange"> & Partial<Pick<Required<AsyncBatcherOptions<TValue>>,
| "initialState"
| "key"
| "onError"
| "onSettled"
| "onSuccess"
| "onItemsChange">> & LitAsyncBatcherOptions<TValue, TSelected>;
Defined in: async-batcher/createAsyncBatcher.ts:26
setOptions#
setOptions: (options) => void;
Defined in: async-batcher/createAsyncBatcher.ts:28
Parameters#
options#
Partial<LitAsyncBatcherOptions<TValue, TSelected>>
Returns#
void
state#
readonly state: Readonly<TSelected>;
Defined in: async-batcher/createAsyncBatcher.ts:34
Selected state. Pass a selector to opt in; the default selection is an empty object.
subscribe#
subscribe: LitPacerSubscribe<AsyncBatcherState<TValue>>;
Defined in: async-batcher/createAsyncBatcher.ts:32
Subscribes a child owner to selected state with automatic cleanup.