Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.16 KB

File metadata and controls

47 lines (28 loc) · 1.16 KB
id AngularAsyncDebouncerOptions
title AngularAsyncDebouncerOptions

Interface: AngularAsyncDebouncerOptions<TFn, TSelected>

Defined in: angular-pacer/src/async-debouncer/injectAsyncDebouncer.ts:13

Extends

  • AsyncDebouncerOptions<TFn>

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

onUnmount()?

optional onUnmount: (debouncer) => void;

Defined in: angular-pacer/src/async-debouncer/injectAsyncDebouncer.ts:22

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