TanStack
Batcher API Reference

VueAsyncBatcherOptions

Defined in: async-batcher/useAsyncBatcher.ts:13

Options for useAsyncBatcher, including owner cleanup.

Extends

  • AsyncBatcherOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

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

Defined in: async-batcher/useAsyncBatcher.ts:18

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

Parameters

instance

VueAsyncBatcher<TValue, TSelected>

Returns

void