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/functions/getLiveQueryWindowCollectionWarning.md
getLiveQueryWindowCollectionWarning
ts
function getLiveQueryWindowCollectionWarning(collection, expectedLimit): string | undefined;Defined in: packages/db/src/live-query-window-controller.ts:436
Internal
Validate a pre-created infinite-query collection and describe any window adjustment the adapter should warn about.
Shared validation for infinite-query adapters.
Parameters#
collection#
Collection<any, any, any>
expectedLimit#
number
Returns#
string | undefined