TanStack

InjectLiveQueryResultWithCollection

Defined in: angular-db/src/index.ts:92

Status, persistence, and health signals every injectLiveQuery result has.

Extends

Type Parameters

TResult

TResult extends object = any

TKey

TKey extends string | number = string | number

TUtils

TUtils extends Record<string, any> = { }

Properties

collection

ts
collection: Signal<
  | Collection<TResult, TKey, TUtils, StandardSchemaV1<unknown, unknown>, TResult>
| null>;

Defined in: angular-db/src/index.ts:99


data

ts
data: Signal<TResult[]>;

Defined in: angular-db/src/index.ts:98


health

ts
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

InjectLiveQueryFlags.health


isCleanedUp

ts
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

ts
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

ts
isIdle: Signal<boolean>;

Defined in: angular-db/src/index.ts:52

A signal indicating whether the collection is idle

Inherited from

InjectLiveQueryFlags.isIdle


isLoading

ts
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

ts
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

ts
isReady: Signal<boolean>;

Defined in: angular-db/src/index.ts:50

A signal indicating whether the collection is ready

Inherited from

InjectLiveQueryFlags.isReady


isSyncError

ts
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

ts
state: Signal<Map<TKey, TResult>>;

Defined in: angular-db/src/index.ts:97


status

ts
status: Signal<CollectionStatus | "disabled">;

Defined in: angular-db/src/index.ts:46

A signal containing the current status of the collection

Inherited from

InjectLiveQueryFlags.status