Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

getLiveQueryWindowCollectionWarning.md

31 lines703 Bytes

1---
2id: getLiveQueryWindowCollectionWarning
3title: getLiveQueryWindowCollectionWarning
4---
5​
6```ts
7function getLiveQueryWindowCollectionWarning(collection, expectedLimit): string | undefined;
8```
9​
10Defined in: [packages/db/src/live-query-window-controller.ts:436](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-window-controller.ts#L436)
11​
12**`Internal`**
13​
14Validate a pre-created infinite-query collection and describe any window
15adjustment the adapter should warn about.
16​
17 Shared validation for infinite-query adapters.
18​
19## Parameters
20​
21### collection
22​
23[`Collection`](../interfaces/Collection.md)\<`any`, `any`, `any`\>
24​
25### expectedLimit
26​
27`number`
28​
29## Returns
30​
31`string` \| `undefined`