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