TanStack
Batcher API Reference

AlpineAsyncBatcherOptions

Defined in: async-batcher/createAsyncBatcher.ts:12

Options for createAsyncBatcher, including owner cleanup.

Extends

  • AsyncBatcherOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

ts
optional onUnmount?: (instance) => void;

Defined in: async-batcher/createAsyncBatcher.ts:17

Replaces default cleanup. Use this to flush, cancel, or stop pending work.

Parameters

instance

AlpineAsyncBatcher<TValue, TSelected>

Returns

void