Skip to main content

SolidBatcherOptions

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

Defined in: batcher/createBatcher.ts:11

Extends

  • BatcherOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

optional onUnmount?: (batcher) => void;

Defined in: batcher/createBatcher.ts:19

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

Parameters

batcher

SolidBatcher<TValue, TSelected>

Returns

void