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

getLiveQueryStatusFlags.md

29 lines765 Bytes

function getLiveQueryStatusFlags(status, health?): LiveQueryStatusFlags;

Defined in: packages/db/src/live-query-primitives.ts:87

Derive the status flags from a collection status and its health tree. This is the one place the isSyncError rule is written. Adapters represent a disabled query separately (with isReady: true); this covers the real CollectionStatus values.

Parameters

status

CollectionStatus

health?

HealthNode

Returns

LiveQueryStatusFlags