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

LiveQueryStatusFlags.md

100 lines2.3 KB

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.