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

CreateLiveQueryWindowControllerOptions.md

66 lines1.6 KB

1---
2id: CreateLiveQueryWindowControllerOptions
3title: CreateLiveQueryWindowControllerOptions
4---
5​
6Defined in: [packages/db/src/live-query-window-controller.ts:540](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-window-controller.ts#L540)
7​
8**`Internal`**
9​
10This contract is unstable while RFC #1623 is being implemented.
11​
12## Properties
13​
14### client?
15​
16```ts
17optional client: DbClient;
18```
19​
20Defined in: [packages/db/src/live-query-window-controller.ts:541](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-window-controller.ts#L541)
21​
22***
23​
24### initialPageCount?
25​
26```ts
27optional initialPageCount: number;
28```
29​
30Defined in: [packages/db/src/live-query-window-controller.ts:548](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-window-controller.ts#L548)
31​
32Committed pages to preserve when a framework binding changes page shape.
33​
34***
35​
36### initialPageParam?
37​
38```ts
39optional initialPageParam: number;
40```
41​
42Defined in: [packages/db/src/live-query-window-controller.ts:546](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-window-controller.ts#L546)
43​
44Value of the first page's `pageParam` (default 0).
45​
46***
47​
48### pageSize?
49​
50```ts
51optional pageSize: number;
52```
53​
54Defined in: [packages/db/src/live-query-window-controller.ts:544](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-window-controller.ts#L544)
55​
56Rows per page (default 20). Invalid values use the default.
57​
58***
59​
60### queryHash?
61​
62```ts
63optional queryHash: string;
64```
65​
66Defined in: [packages/db/src/live-query-window-controller.ts:542](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-window-controller.ts#L542)