Skip to content
Source
Sign inSign up
TanStack/pacer
Open History to see the last commit

PreactQueuerOptions.md

44 lines842 Bytes

1---
2id: PreactQueuerOptions
3title: PreactQueuerOptions
4---
5​
6Defined in: [queuer/useQueuer.ts:9](https://github.com/TanStack/pacer/blob/main/packages/preact-pacer/src/queuer/useQueuer.ts#L9)
7​
8## Extends
9​
10- `QueuerOptions`\<`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?: (queuer) => void;
29```
30​
31Defined in: [queuer/useQueuer.ts:17](https://github.com/TanStack/pacer/blob/main/packages/preact-pacer/src/queuer/useQueuer.ts#L17)
32​
33Optional callback invoked when the component unmounts. Receives the queuer instance.
34When provided, replaces the default cleanup (stop); use it to call flush(), flushAsBatch(), stop(), add logging, etc.
35​
36#### Parameters
37​
38##### queuer
39​
40[`PreactQueuer`](PreactQueuer.md)\<`TValue`, `TSelected`\>
41​
42#### Returns
43​
44`void`