TanStack
Batcher API Reference

LitBatcherOptions

Defined in: batcher/createBatcher.ts:10

Options for createBatcher, including owner cleanup.

Extends

  • BatcherOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

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

Defined in: batcher/createBatcher.ts:15

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

Parameters

instance

LitBatcher<TValue, TSelected>

Returns

void