Open History to see the last commit
1---
2id: LiveQueryStatusFlags
3title: LiveQueryStatusFlags
4---
5
6Defined in: [packages/db/src/live-query-primitives.ts:59](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L59)
7
8The derived flags and health every adapter exposes for a query, besides
9`status`, which each adapter reports as its own field.
10
11## Properties
12
13### health
14
15```ts
16health: HealthNode | undefined;
17```
18
19Defined in: [packages/db/src/live-query-primitives.ts:78](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L78)
20
21The health tree for the query and every Collection it depends on, or
22`undefined` for a disabled query.
23
24***
25
26### isCleanedUp
27
28```ts
29isCleanedUp: boolean;
30```
31
32Defined in: [packages/db/src/live-query-primitives.ts:67](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L67)
33
34***
35
36### isCrashed
37
38```ts
39isCrashed: boolean;
40```
41
42Defined in: [packages/db/src/live-query-primitives.ts:66](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L66)
43
44Local storage or an invariant broke. `status` is `crashed`.
45
46***
47
48### isIdle
49
50```ts
51isIdle: boolean;
52```
53
54Defined in: [packages/db/src/live-query-primitives.ts:62](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L62)
55
56***
57
58### isLoading
59
60```ts
61isLoading: boolean;
62```
63
64Defined in: [packages/db/src/live-query-primitives.ts:60](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L60)
65
66***
67
68### isLoadingError
69
70```ts
71isLoadingError: boolean;
72```
73
74Defined in: [packages/db/src/live-query-primitives.ts:64](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L64)
75
76The first load failed: there is nothing to show. `status` is `error`.
77
78***
79
80### isReady
81
82```ts
83isReady: boolean;
84```
85
86Defined in: [packages/db/src/live-query-primitives.ts:61](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L61)
87
88***
89
90### isSyncError
91
92```ts
93isSyncError: boolean;
94```
95
96Defined in: [packages/db/src/live-query-primitives.ts:73](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L73)
97
98The data is shown, and something keeps it from staying current: a sync
99problem or failed request somewhere in `health`. Set only while `status` is
100`ready`; a disabled query is never in a sync error.