Open History to see the last commit
1---
2id: getLiveQueryStatusFlags
3title: getLiveQueryStatusFlags
4---
5
6```ts
7function getLiveQueryStatusFlags(status, health?): LiveQueryStatusFlags;
8```
9
10Defined in: [packages/db/src/live-query-primitives.ts:87](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-primitives.ts#L87)
11
12Derive the status flags from a collection status and its health tree. This is
13the one place the `isSyncError` rule is written. Adapters represent a disabled
14query separately (with `isReady: true`); this covers the real
15`CollectionStatus` values.
16
17## Parameters
18
19### status
20
21[`CollectionStatus`](../type-aliases/CollectionStatus.md)
22
23### health?
24
25[`HealthNode`](../interfaces/HealthNode.md)
26
27## Returns
28
29[`LiveQueryStatusFlags`](../interfaces/LiveQueryStatusFlags.md)