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

DebounceStrategyOptions.md

45 lines991 Bytes

1---
2id: DebounceStrategyOptions
3title: DebounceStrategyOptions
4---
5​
6Defined in: [packages/db/src/strategies/types.ts:37](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L37)
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:41](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L41)
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:43](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L43)
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:39](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L39)
44​
45Wait time in milliseconds before execution