Skip to main content

AngularBatcherOptions

还没翻译译自英文(tanstack.com)本页 18 段都还没译

Defined in: batcher/injectBatcher.ts:11

Extends

  • BatcherOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

optional onUnmount?: (batcher) => void;

Defined in: batcher/injectBatcher.ts:19

Optional callback invoked when the component is destroyed. Receives the batcher instance. When provided, replaces the default cleanup (cancel); use it to call flush(), cancel(), add logging, etc.

Parameters

batcher

AngularBatcher<TValue, TSelected>

Returns

void