- 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
- Vue Composables
- useLiveQuery
- UseLiveQueryReturn
- UseLiveQueryReturnWithCollection
UseLiveQueryReturnWithCollection
Defined in: useLiveQuery.ts:98
Status, persistence, and error refs every useLiveQuery result has.
Extends#
Type Parameters#
T#
T extends object
TKey#
TKey extends string | number
TUtils#
TUtils extends Record<string, any>
Properties#
collection#
collection: ComputedRef<Collection<T, TKey, TUtils, StandardSchemaV1<unknown, unknown>, T>>;Defined in: useLiveQuery.ts:105
data#
data: ComputedRef<T[]>;Defined in: useLiveQuery.ts:104
health#
health: ComputedRef<HealthNode | undefined>;Defined in: useLiveQuery.ts:69
Inherited from#
isCleanedUp#
isCleanedUp: ComputedRef<boolean>;Defined in: useLiveQuery.ts:66
Inherited from#
isCrashed#
isCrashed: ComputedRef<boolean>;Defined in: useLiveQuery.ts:65
Local storage or an invariant broke. Only a cascade cleanup and a fresh start recover.
Inherited from#
isIdle#
isIdle: ComputedRef<boolean>;Defined in: useLiveQuery.ts:61
Inherited from#
isLoading#
isLoading: ComputedRef<boolean>;Defined in: useLiveQuery.ts:59
Inherited from#
isLoadingError#
isLoadingError: ComputedRef<boolean>;Defined in: useLiveQuery.ts:63
The first load failed: there is nothing to show.
Inherited from#
UseLiveQueryFlags.isLoadingError
isReady#
isReady: ComputedRef<boolean>;Defined in: useLiveQuery.ts:60
Inherited from#
isSyncError#
isSyncError: ComputedRef<boolean>;Defined in: useLiveQuery.ts:68
The data is shown, and a sync problem or failed request is in health.
Inherited from#
state#
state: ComputedRef<Map<TKey, T>>;Defined in: useLiveQuery.ts:103
status#
status: ComputedRef<CollectionStatus>;Defined in: useLiveQuery.ts:58