Defined in: async-batcher/useAsyncBatcher.ts:24
An AsyncBatcher with framework-reactive selected state. All core methods remain available.
TValue
TSelected = { }
options: Omit<Required<AsyncBatcherOptions<TValue>>,
| "initialState"
| "key"
| "onError"
| "onSettled"
| "onSuccess"
| "onItemsChange"> & Partial<Pick<Required<AsyncBatcherOptions<TValue>>,
| "initialState"
| "key"
| "onError"
| "onSettled"
| "onSuccess"
| "onItemsChange">> & OctaneAsyncBatcherOptions<TValue, TSelected>;Defined in: async-batcher/useAsyncBatcher.ts:28
setOptions: (options) => void;Defined in: async-batcher/useAsyncBatcher.ts:30
Partial<OctaneAsyncBatcherOptions<TValue, TSelected>>
void
readonly state: Readonly<TSelected>;Defined in: async-batcher/useAsyncBatcher.ts:36
Selected state. Pass a selector to opt in; the default selection is an empty object.
Subscribe: OctanePacerSubscribe<AsyncBatcherState<TValue>>;Defined in: async-batcher/useAsyncBatcher.ts:34
Selects state in a child without subscribing the utility owner.