TanStack
Batcher API Reference

EmberBatcherOptions

Defined in: packages/ember-pacer/src/batcher/useBatcher.ts:15

Options for useBatcher, including owner cleanup.

Extends

  • BatcherOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

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

Defined in: packages/ember-pacer/src/batcher/useBatcher.ts:20

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

Parameters

instance

EmberBatcher<TValue, TSelected>

Returns

void