TanStack
Queue API Reference

AlpineQueuerOptions

Defined in: queuer/createQueuer.ts:9

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:14

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

Parameters

instance

AlpineQueuer<TValue, TSelected>

Returns

void