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

UseLiveQueryResult.md

117 lines1.9 KB

Defined in: useLiveQuery.ts:84

The result of a live query that is always enabled.

Extends

  • LiveQueryResultFlags

Type Parameters

TResult

TResult extends object

TKey

TKey extends string | number

TData

TData

TCollection

TCollection

Properties

collection

collection: TCollection;

Defined in: useLiveQuery.ts:92


data

data: TData;

Defined in: useLiveQuery.ts:91


health

health: HealthNode | undefined;

Defined in: useLiveQuery.ts:80

The health tree for the query and every Collection it depends on, or undefined for a disabled query.

Inherited from

LiveQueryResultFlags.health

isEnabled

isEnabled: true;

Defined in: useLiveQuery.ts:94


isSyncError

isSyncError: boolean;

Defined in: useLiveQuery.ts:75

The data is shown, and a sync problem or failed request is in health.

Inherited from

LiveQueryResultFlags.isSyncError

state

state: ReadonlyMap<TKey, TResult>;

Defined in: useLiveQuery.ts:90


status

status: CollectionStatus;

Defined in: useLiveQuery.ts:93