TanStack
Throttler API Reference

OctaneAsyncThrottlerOptions

Defined in: async-throttler/useAsyncThrottler.ts:16

Options for useAsyncThrottler, 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/useAsyncThrottler.ts:21

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

Parameters

instance

OctaneAsyncThrottler<TFn, TSelected>

Returns

void