Skip to main content

AngularAsyncDebouncerOptions

还没翻译译自英文(tanstack.com)本页 18 段都还没译

Defined in: async-debouncer/injectAsyncDebouncer.ts:15

Extends

  • AsyncDebouncerOptions<TFn>

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

onUnmount?

optional onUnmount?: (debouncer) => void;

Defined in: async-debouncer/injectAsyncDebouncer.ts:24

Optional callback invoked when the component is destroyed. Receives the debouncer instance. When provided, replaces the default cleanup (cancel + abort); use it to call flush(), cancel(), add logging, etc. When using onUnmount with flush, guard your callbacks since the component may already be destroyed.

Parameters

debouncer

AngularAsyncDebouncer<TFn, TSelected>

Returns

void