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

InjectLiveQueryFlags.md

122 lines2.7 KB

1---
2id: InjectLiveQueryFlags
3title: InjectLiveQueryFlags
4---
5​
6Defined in: [angular-db/src/index.ts:44](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L44)
7​
8Status, persistence, and health signals every `injectLiveQuery` result has.
9​
10## Extended by
11​
12- [`InjectLiveQueryResult`](InjectLiveQueryResult.md)
13- [`InjectLiveQueryResultWithCollection`](InjectLiveQueryResultWithCollection.md)
14- [`InjectLiveQueryResultWithSingleResultCollection`](InjectLiveQueryResultWithSingleResultCollection.md)
15​
16## Properties
17​
18### health
19​
20```ts
21health: Signal<HealthNode | undefined>;
22```
23​
24Defined in: [angular-db/src/index.ts:62](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L62)
25​
26A signal containing the health tree for the query and its dependencies
27​
28***
29​
30### isCleanedUp
31​
32```ts
33isCleanedUp: Signal<boolean>;
34```
35​
36Defined in: [angular-db/src/index.ts:58](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L58)
37​
38A signal indicating whether the collection has been cleaned up
39​
40***
41​
42### isCrashed
43​
44```ts
45isCrashed: Signal<boolean>;
46```
47​
48Defined in: [angular-db/src/index.ts:56](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L56)
49​
50Local storage or an invariant broke. Only a cascade cleanup and a fresh start recover.
51​
52***
53​
54### isIdle
55​
56```ts
57isIdle: Signal<boolean>;
58```
59​
60Defined in: [angular-db/src/index.ts:52](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L52)
61​
62A signal indicating whether the collection is idle
63​
64***
65​
66### isLoading
67​
68```ts
69isLoading: Signal<boolean>;
70```
71​
72Defined in: [angular-db/src/index.ts:48](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L48)
73​
74A signal indicating whether the collection is currently loading
75​
76***
77​
78### isLoadingError
79​
80```ts
81isLoadingError: Signal<boolean>;
82```
83​
84Defined in: [angular-db/src/index.ts:54](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L54)
85​
86The first load failed: there is nothing to show.
87​
88***
89​
90### isReady
91​
92```ts
93isReady: Signal<boolean>;
94```
95​
96Defined in: [angular-db/src/index.ts:50](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L50)
97​
98A signal indicating whether the collection is ready
99​
100***
101​
102### isSyncError
103​
104```ts
105isSyncError: Signal<boolean>;
106```
107​
108Defined in: [angular-db/src/index.ts:60](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L60)
109​
110The data is shown, and a sync problem or failed request is in `health`.
111​
112***
113​
114### status
115​
116```ts
117status: Signal<CollectionStatus | "disabled">;
118```
119​
120Defined in: [angular-db/src/index.ts:46](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L46)
121​
122A signal containing the current status of the collection