Open History to see the last commit
1---
2id: ReactAsyncDebouncerOptions
3title: ReactAsyncDebouncerOptions
4---
5
6Defined in: [async-debouncer/useAsyncDebouncer.ts:13](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/async-debouncer/useAsyncDebouncer.ts#L13)
7
8## Extends
9
10- `AsyncDebouncerOptions`\<`TFn`\>
11
12## Type Parameters
13
14### TFn
15
16`TFn` *extends* `AnyAsyncFunction`
17
18### TSelected
19
20`TSelected` = \{
21\}
22
23## Properties
24
25### onUnmount?
26
27```ts
28optional onUnmount?: (debouncer) => void;
29```
30
31Defined in: [async-debouncer/useAsyncDebouncer.ts:21](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/async-debouncer/useAsyncDebouncer.ts#L21)
32
33Optional callback invoked when the component unmounts. Receives the debouncer instance.
34When provided, replaces the default cleanup (cancel + abort); use it to call flush(), reset(), cancel(), add logging, etc.
35
36#### Parameters
37
38##### debouncer
39
40[`ReactAsyncDebouncer`](ReactAsyncDebouncer.md)\<`TFn`, `TSelected`\>
41
42#### Returns
43
44`void`