Open History to see the last commit
1---
2id: InjectLiveQueryResult
3title: InjectLiveQueryResult
4---
5
6Defined in: [angular-db/src/index.ts:65](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L65)
7
8Status, persistence, and health signals every `injectLiveQuery` result has.
9
10## Extends
11
12- [`InjectLiveQueryFlags`](InjectLiveQueryFlags.md)
13
14## Type Parameters
15
16### TContext
17
18`TContext` *extends* `Context`
19
20## Properties
21
22### collection
23
24```ts
25collection: Signal<
26 | Collection<{ [K in string | number | symbol]: ResultValue<TContext>[K] }, string | number, {
27}, StandardSchemaV1<unknown, unknown>, { [K in string | number | symbol]: ResultValue<TContext>[K] }>
28| null>;
29```
30
31Defined in: [angular-db/src/index.ts:73](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L73)
32
33A signal containing the underlying collection instance (null for disabled queries)
34
35***
36
37### data
38
39```ts
40data: Signal<InferResultType<TContext>>;
41```
42
43Defined in: [angular-db/src/index.ts:71](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L71)
44
45A signal containing the results as an array, or single result for findOne queries
46
47***
48
49### health
50
51```ts
52health: Signal<HealthNode | undefined>;
53```
54
55Defined in: [angular-db/src/index.ts:62](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L62)
56
57A signal containing the health tree for the query and its dependencies
58
59#### Inherited from
60
61[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`health`](InjectLiveQueryFlags.md#health)
62
63***
64
65### isCleanedUp
66
67```ts
68isCleanedUp: Signal<boolean>;
69```
70
71Defined in: [angular-db/src/index.ts:58](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L58)
72
73A signal indicating whether the collection has been cleaned up
74
75#### Inherited from
76
77[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`isCleanedUp`](InjectLiveQueryFlags.md#iscleanedup)
78
79***
80
81### isCrashed
82
83```ts
84isCrashed: Signal<boolean>;
85```
86
87Defined in: [angular-db/src/index.ts:56](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L56)
88
89Local storage or an invariant broke. Only a cascade cleanup and a fresh start recover.
90
91#### Inherited from
92
93[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`isCrashed`](InjectLiveQueryFlags.md#iscrashed)
94
95***
96
97### isIdle
98
99```ts
100isIdle: Signal<boolean>;
101```
102
103Defined in: [angular-db/src/index.ts:52](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L52)
104
105A signal indicating whether the collection is idle
106
107#### Inherited from
108
109[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`isIdle`](InjectLiveQueryFlags.md#isidle)
110
111***
112
113### isLoading
114
115```ts
116isLoading: Signal<boolean>;
117```
118
119Defined in: [angular-db/src/index.ts:48](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L48)
120
121A signal indicating whether the collection is currently loading
122
123#### Inherited from
124
125[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`isLoading`](InjectLiveQueryFlags.md#isloading)
126
127***
128
129### isLoadingError
130
131```ts
132isLoadingError: Signal<boolean>;
133```
134
135Defined in: [angular-db/src/index.ts:54](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L54)
136
137The first load failed: there is nothing to show.
138
139#### Inherited from
140
141[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`isLoadingError`](InjectLiveQueryFlags.md#isloadingerror)
142
143***
144
145### isReady
146
147```ts
148isReady: Signal<boolean>;
149```
150
151Defined in: [angular-db/src/index.ts:50](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L50)
152
153A signal indicating whether the collection is ready
154
155#### Inherited from
156
157[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`isReady`](InjectLiveQueryFlags.md#isready)
158
159***
160
161### isSyncError
162
163```ts
164isSyncError: Signal<boolean>;
165```
166
167Defined in: [angular-db/src/index.ts:60](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L60)
168
169The data is shown, and a sync problem or failed request is in `health`.
170
171#### Inherited from
172
173[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`isSyncError`](InjectLiveQueryFlags.md#issyncerror)
174
175***
176
177### state
178
179```ts
180state: Signal<Map<string | number, { [K in string | number | symbol]: ResultValue<TContext>[K] }>>;
181```
182
183Defined in: [angular-db/src/index.ts:69](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L69)
184
185A signal containing the complete state map of results keyed by their ID
186
187***
188
189### status
190
191```ts
192status: Signal<CollectionStatus | "disabled">;
193```
194
195Defined in: [angular-db/src/index.ts:46](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L46)
196
197A signal containing the current status of the collection
198
199#### Inherited from
200
201[`InjectLiveQueryFlags`](InjectLiveQueryFlags.md).[`status`](InjectLiveQueryFlags.md#status)