TanStack
Queue API Reference

OctaneAsyncQueuerOptions

Defined in: async-queuer/useAsyncQueuer.ts:15

Options for useAsyncQueuer, including owner cleanup.

Extends

  • AsyncQueuerOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

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

Defined in: async-queuer/useAsyncQueuer.ts:20

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

Parameters

instance

OctaneAsyncQueuer<TValue, TSelected>

Returns

void