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/DebounceStrategyOptions.md
DebounceStrategyOptions
Defined in: packages/db/src/strategies/types.ts:37
Options for debounce strategy Delays execution until after a period of inactivity
Properties#
leading?#
ts
optional leading: boolean;Defined in: packages/db/src/strategies/types.ts:41
Execute immediately on the first call
trailing?#
ts
optional trailing: boolean;Defined in: packages/db/src/strategies/types.ts:43
Execute after the wait period on the last call
wait#
ts
wait: number;Defined in: packages/db/src/strategies/types.ts:39
Wait time in milliseconds before execution