InjectLiveQueryResult
Defined in: angular-db/src/index.ts:65
Status, persistence, and health signals every injectLiveQuery result has.
Extends#
Type Parameters#
TContext#
TContext extends Context
Properties#
collection#
collection: Signal<
| Collection<{ [K in string | number | symbol]: ResultValue<TContext>[K] }, string | number, {
}, StandardSchemaV1<unknown, unknown>, { [K in string | number | symbol]: ResultValue<TContext>[K] }>
| null>;Defined in: angular-db/src/index.ts:73
A signal containing the underlying collection instance (null for disabled queries)
data#
data: Signal<InferResultType<TContext>>;Defined in: angular-db/src/index.ts:71
A signal containing the results as an array, or single result for findOne queries
health#
health: Signal<HealthNode | undefined>;Defined in: angular-db/src/index.ts:62
A signal containing the health tree for the query and its dependencies
Inherited from#
isCleanedUp#
isCleanedUp: Signal<boolean>;Defined in: angular-db/src/index.ts:58
A signal indicating whether the collection has been cleaned up
Inherited from#
InjectLiveQueryFlags.isCleanedUp
isCrashed#
isCrashed: Signal<boolean>;Defined in: angular-db/src/index.ts:56
Local storage or an invariant broke. Only a cascade cleanup and a fresh start recover.
Inherited from#
InjectLiveQueryFlags.isCrashed
isIdle#
isIdle: Signal<boolean>;Defined in: angular-db/src/index.ts:52
A signal indicating whether the collection is idle
Inherited from#
isLoading#
isLoading: Signal<boolean>;Defined in: angular-db/src/index.ts:48
A signal indicating whether the collection is currently loading
Inherited from#
InjectLiveQueryFlags.isLoading
isLoadingError#
isLoadingError: Signal<boolean>;Defined in: angular-db/src/index.ts:54
The first load failed: there is nothing to show.
Inherited from#
InjectLiveQueryFlags.isLoadingError
isReady#
isReady: Signal<boolean>;Defined in: angular-db/src/index.ts:50
A signal indicating whether the collection is ready
Inherited from#
isSyncError#
isSyncError: Signal<boolean>;Defined in: angular-db/src/index.ts:60
The data is shown, and a sync problem or failed request is in health.
Inherited from#
InjectLiveQueryFlags.isSyncError
state#
state: Signal<Map<string | number, { [K in string | number | symbol]: ResultValue<TContext>[K] }>>;Defined in: angular-db/src/index.ts:69
A signal containing the complete state map of results keyed by their ID
status#
status: Signal<CollectionStatus | "disabled">;Defined in: angular-db/src/index.ts:46
A signal containing the current status of the collection