Open History to see the last commit
1---
2id: UseConditionalLiveQueryResult
3title: UseConditionalLiveQueryResult
4---
5
6Defined in: [useLiveQuery.ts:97](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L97)
7
8The result of a live query whose callback can disable it.
9
10## Extends
11
12- `LiveQueryResultFlags`
13
14## Type Parameters
15
16### TResult
17
18`TResult` *extends* `object`
19
20### TKey
21
22`TKey` *extends* `string` \| `number`
23
24### TData
25
26`TData`
27
28### TCollection
29
30`TCollection`
31
32## Properties
33
34### collection
35
36```ts
37collection: TCollection | undefined;
38```
39
40Defined in: [useLiveQuery.ts:105](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L105)
41
42***
43
44### data
45
46```ts
47data: TData | undefined;
48```
49
50Defined in: [useLiveQuery.ts:104](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L104)
51
52***
53
54### isCleanedUp
55
56```ts
57isCleanedUp: boolean;
58```
59
60Defined in: [useLiveQuery.ts:79](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L79)
61
62#### Inherited from
63
64```ts
65LiveQueryResultFlags.isCleanedUp
66```
67
68***
69
70### isEnabled
71
72```ts
73isEnabled: boolean;
74```
75
76Defined in: [useLiveQuery.ts:107](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L107)
77
78***
79
80### isError
81
82```ts
83isError: boolean;
84```
85
86Defined in: [useLiveQuery.ts:78](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L78)
87
88#### Inherited from
89
90```ts
91LiveQueryResultFlags.isError
92```
93
94***
95
96### isIdle
97
98```ts
99isIdle: boolean;
100```
101
102Defined in: [useLiveQuery.ts:77](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L77)
103
104#### Inherited from
105
106```ts
107LiveQueryResultFlags.isIdle
108```
109
110***
111
112### isLoading
113
114```ts
115isLoading: boolean;
116```
117
118Defined in: [useLiveQuery.ts:72](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L72)
119
120#### Inherited from
121
122```ts
123LiveQueryResultFlags.isLoading
124```
125
126***
127
128### isPersistedReady
129
130```ts
131isPersistedReady: boolean;
132```
133
134Defined in: [useLiveQuery.ts:75](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L75)
135
136#### Inherited from
137
138```ts
139LiveQueryResultFlags.isPersistedReady
140```
141
142***
143
144### isReady
145
146```ts
147isReady: boolean;
148```
149
150Defined in: [useLiveQuery.ts:73](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L73)
151
152#### Inherited from
153
154```ts
155LiveQueryResultFlags.isReady
156```
157
158***
159
160### persistedError
161
162```ts
163persistedError: unknown;
164```
165
166Defined in: [useLiveQuery.ts:76](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L76)
167
168#### Inherited from
169
170```ts
171LiveQueryResultFlags.persistedError
172```
173
174***
175
176### persistedStatus
177
178```ts
179persistedStatus: LiveQueryPersistedStatus;
180```
181
182Defined in: [useLiveQuery.ts:74](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L74)
183
184#### Inherited from
185
186```ts
187LiveQueryResultFlags.persistedStatus
188```
189
190***
191
192### state
193
194```ts
195state: ReadonlyMap<TKey, TResult> | undefined;
196```
197
198Defined in: [useLiveQuery.ts:103](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L103)
199
200***
201
202### status
203
204```ts
205status: UseLiveQueryStatus;
206```
207
208Defined in: [useLiveQuery.ts:106](https://github.com/TanStack/db/blob/main/packages/preact-db/src/useLiveQuery.ts#L106)