Skip to main content

OctaneBatcherOptions

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

Defined in: batcher/useBatcher.ts:12

Options for useBatcher, including owner cleanup.

Extends

  • BatcherOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

optional onUnmount?: (instance) => void;

Defined in: batcher/useBatcher.ts:17

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

Parameters

instance

OctaneBatcher<TValue, TSelected>

Returns

void