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