Open History to see the last commit
1---
2id: ThrottleStrategyOptions
3title: ThrottleStrategyOptions
4---
5
6Defined in: [packages/db/src/strategies/types.ts:87](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L87)
7
8Options for throttle strategy
9Ensures executions are evenly spaced over time
10
11## Properties
12
13### leading?
14
15```ts
16optional leading: boolean;
17```
18
19Defined in: [packages/db/src/strategies/types.ts:91](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L91)
20
21Execute immediately on the first call. Defaults to true unless trailing is explicitly true.
22
23***
24
25### trailing?
26
27```ts
28optional trailing: boolean;
29```
30
31Defined in: [packages/db/src/strategies/types.ts:93](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L93)
32
33Execute on the last call after wait period. Defaults to true. Disabled trailing rejects skipped optimistic calls.
34
35***
36
37### wait
38
39```ts
40wait: number;
41```
42
43Defined in: [packages/db/src/strategies/types.ts:89](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L89)
44
45Minimum wait time between executions (milliseconds)