Pacer Docs
API Reference
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
AI/LLM: This documentation page is available in plain markdown format at/pacer/latest/docs/framework/vue/reference/interfaces/VueAsyncBatcher.md
Batcher API Reference
VueAsyncBatcher
Defined in: async-batcher/useAsyncBatcher.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#
ts
options: Omit<Required<AsyncBatcherOptions<TValue>>,
| "initialState"
| "key"
| "onError"
| "onSettled"
| "onSuccess"
| "onItemsChange"> & Partial<Pick<Required<AsyncBatcherOptions<TValue>>,
| "initialState"
| "key"
| "onError"
| "onSettled"
| "onSuccess"
| "onItemsChange">> & VueAsyncBatcherOptions<TValue, TSelected>;Defined in: async-batcher/useAsyncBatcher.ts:26
setOptions#
ts
setOptions: (options) => void;Defined in: async-batcher/useAsyncBatcher.ts:28
Parameters#
options#
Partial<VueAsyncBatcherOptions<TValue, TSelected>>
Returns#
void
state#
ts
readonly state: Readonly<ShallowRef<TSelected>>;Defined in: async-batcher/useAsyncBatcher.ts:34
Selected state. Pass a selector to opt in; the default selection is an empty object.
Subscribe#
ts
Subscribe: VuePacerSubscribe<AsyncBatcherState<TValue>>;Defined in: async-batcher/useAsyncBatcher.ts:32
Subscribes a scoped slot to state without re-rendering the utility owner.