DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/interfaces/ThrottleStrategyOptions.md
ThrottleStrategyOptions
Defined in: packages/db/src/strategies/types.ts:87
Options for throttle strategy Ensures executions are evenly spaced over time
Properties#
leading?#
ts
optional leading: boolean;Defined in: packages/db/src/strategies/types.ts:91
Execute immediately on the first call. Defaults to true unless trailing is explicitly true.
trailing?#
ts
optional trailing: boolean;Defined in: packages/db/src/strategies/types.ts:93
Execute on the last call after wait period. Defaults to true. Disabled trailing rejects skipped optimistic calls.
wait#
ts
wait: number;Defined in: packages/db/src/strategies/types.ts:89
Minimum wait time between executions (milliseconds)