TanStack
Batcher API Reference

AngularBatcher

Defined in: batcher/injectBatcher.ts:22

Extends

  • Omit<Batcher<TValue>, "store" | "options" | "setOptions">

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

options

ts
options: Omit<Required<BatcherOptions<TValue>>, "initialState" | "key" | "onItemsChange" | "onExecute"> & Partial<Pick<Required<BatcherOptions<TValue>>, "initialState" | "key" | "onItemsChange" | "onExecute">> & AngularBatcherOptions<TValue, TSelected>;

Defined in: batcher/injectBatcher.ts:26


setOptions

ts
setOptions: (options) => void;

Defined in: batcher/injectBatcher.ts:27

Parameters

options

Partial<AngularBatcherOptions<TValue, TSelected>>

Returns

void


state

ts
readonly state: Signal<Readonly<TSelected>>;

Defined in: batcher/injectBatcher.ts:35

Reactive state signal that will be updated when the batcher state changes

Use this instead of batcher.store.state


store

ts
readonly store: Store<Readonly<BatcherState<TValue>>>;

Defined in: batcher/injectBatcher.ts:40

Deprecated

Use batcher.state instead of batcher.store.state if you want to read reactive state. The state on the store object is not reactive in Angular signals.