Open History to see the last commit
1---
2id: DebouncerState
3title: DebouncerState
4---
5
6Defined in: [debouncer.ts:6](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/debouncer.ts#L6)
7
8## Type Parameters
9
10### TFn
11
12`TFn` *extends* [`AnyFunction`](../type-aliases/AnyFunction.md)
13
14## Properties
15
16### canLeadingExecute
17
18```ts
19canLeadingExecute: boolean;
20```
21
22Defined in: [debouncer.ts:10](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/debouncer.ts#L10)
23
24Whether the debouncer can execute on the leading edge of the timeout
25
26***
27
28### executionCount
29
30```ts
31executionCount: number;
32```
33
34Defined in: [debouncer.ts:14](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/debouncer.ts#L14)
35
36Number of function executions that have been completed
37
38***
39
40### isPending
41
42```ts
43isPending: boolean;
44```
45
46Defined in: [debouncer.ts:18](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/debouncer.ts#L18)
47
48Whether the debouncer is waiting for the timeout to trigger execution
49
50***
51
52### lastArgs
53
54```ts
55lastArgs: Parameters<TFn> | undefined;
56```
57
58Defined in: [debouncer.ts:22](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/debouncer.ts#L22)
59
60The arguments from the most recent call to maybeExecute
61
62***
63
64### maybeExecuteCount
65
66```ts
67maybeExecuteCount: number;
68```
69
70Defined in: [debouncer.ts:26](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/debouncer.ts#L26)
71
72Number of times maybeExecute has been called (for reduction calculations)
73
74***
75
76### status
77
78```ts
79status: "disabled" | "idle" | "pending";
80```
81
82Defined in: [debouncer.ts:30](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/debouncer.ts#L30)
83
84Current execution status - 'idle' when not active, 'pending' when waiting for timeout