TanStack
Queue API Reference

LitQueuerOptions

Defined in: queuer/createQueuer.ts:10

Options for createQueuer, including owner cleanup.

Extends

  • QueuerOptions<TValue>

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

onUnmount?

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

Defined in: queuer/createQueuer.ts:15

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

Parameters

instance

LitQueuer<TValue, TSelected>

Returns

void