- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
LiveQueryStatusFlags
Defined in: packages/db/src/live-query-primitives.ts:59
The derived flags and health every adapter exposes for a query, besides status, which each adapter reports as its own field.
Properties#
health#
health: HealthNode | undefined;Defined in: packages/db/src/live-query-primitives.ts:78
The health tree for the query and every Collection it depends on, or undefined for a disabled query.
isCleanedUp#
isCleanedUp: boolean;Defined in: packages/db/src/live-query-primitives.ts:67
isCrashed#
isCrashed: boolean;Defined in: packages/db/src/live-query-primitives.ts:66
Local storage or an invariant broke. status is crashed.
isIdle#
isIdle: boolean;Defined in: packages/db/src/live-query-primitives.ts:62
isLoading#
isLoading: boolean;Defined in: packages/db/src/live-query-primitives.ts:60
isLoadingError#
isLoadingError: boolean;Defined in: packages/db/src/live-query-primitives.ts:64
The first load failed: there is nothing to show. status is error.
isReady#
isReady: boolean;Defined in: packages/db/src/live-query-primitives.ts:61
isSyncError#
isSyncError: boolean;Defined in: packages/db/src/live-query-primitives.ts:73
The data is shown, and something keeps it from staying current: a sync problem or failed request somewhere in health. Set only while status is ready; a disabled query is never in a sync error.