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

getLiveQueryStatusFlags.md

24 lines623 Bytes

1---
2id: getLiveQueryStatusFlags
3title: getLiveQueryStatusFlags
4---
5​
6```ts
7function getLiveQueryStatusFlags(status): LiveQueryStatusFlags;
8```
9​
10Defined in: [packages/db/src/live-query-adapter.ts:71](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-adapter.ts#L71)
11​
12Derive the boolean status flags from a collection status. Adapters represent
13a disabled query separately (with `isReady: true`); this covers the real
14`CollectionStatus` values.
15​
16## Parameters
17​
18### status
19​
20[`CollectionStatus`](../type-aliases/CollectionStatus.md)
21​
22## Returns
23​
24[`LiveQueryStatusFlags`](../interfaces/LiveQueryStatusFlags.md)