Open History to see the last commit
1---
2id: DebounceStrategyOptions
3title: DebounceStrategyOptions
4---
5
6Defined in: [packages/db/src/strategies/types.ts:30](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L30)
7
8Options for debounce strategy
9Delays execution until after a period of inactivity
10
11## Properties
12
13### leading?
14
15```ts
16optional leading: boolean;
17```
18
19Defined in: [packages/db/src/strategies/types.ts:34](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L34)
20
21Execute immediately on the first call
22
23***
24
25### trailing?
26
27```ts
28optional trailing: boolean;
29```
30
31Defined in: [packages/db/src/strategies/types.ts:36](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L36)
32
33Execute after the wait period on the last call
34
35***
36
37### wait
38
39```ts
40wait: number;
41```
42
43Defined in: [packages/db/src/strategies/types.ts:32](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L32)
44
45Wait time in milliseconds before execution