TanStack

getLiveQueryWindowCollectionWarning

Function: getLiveQueryWindowCollectionWarning()

ts
function getLiveQueryWindowCollectionWarning(collection, expectedLimit): string | undefined;

Defined in: packages/db/src/live-query-window-controller.ts:401

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