TanStack
Throttler API Reference

AlpineAsyncThrottlerOptions

Defined in: async-throttler/createAsyncThrottler.ts:13

Options for createAsyncThrottler, including owner cleanup.

Extends

  • AsyncThrottlerOptions<TFn>

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

onUnmount?

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

Defined in: async-throttler/createAsyncThrottler.ts:18

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

Parameters

instance

AlpineAsyncThrottler<TFn, TSelected>

Returns

void