本页还没有译文
本页 40 段还没译成Português (BR),下面显示的是英文原文。InjectLiveQueryResult
还没翻译译自英文(tanstack.com)本页 40 段都还没译
Defined in: index.ts:40
The result of calling injectLiveQuery.
Contains reactive signals for the query state and data.
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: index.ts:46
A signal containing the underlying collection instance (null for disabled queries)
data
data: Signal<InferResultType<TContext>>;Defined in: index.ts:44
A signal containing the results as an array, or single result for findOne queries
isCleanedUp
isCleanedUp: Signal<boolean>;Defined in: index.ts:65
A signal indicating whether the collection has been cleaned up
isError
isError: Signal<boolean>;Defined in: index.ts:63
A signal indicating whether the collection has an error
isIdle
isIdle: Signal<boolean>;Defined in: index.ts:61
A signal indicating whether the collection is idle
isLoading
isLoading: Signal<boolean>;Defined in: index.ts:54
A signal indicating whether the collection is currently loading
isPersistedReady
isPersistedReady: Signal<boolean>;Defined in: index.ts:58
isReady
isReady: Signal<boolean>;Defined in: index.ts:56
A signal indicating whether the collection is ready
persistedError
persistedError: Signal<unknown>;Defined in: index.ts:59
persistedStatus
persistedStatus: Signal<LiveQueryPersistedStatus>;Defined in: index.ts:57
state
state: Signal<Map<string | number, { [K in string | number | symbol]: ResultValue<TContext>[K] }>>;Defined in: index.ts:42
A signal containing the complete state map of results keyed by their ID
status
status: Signal<CollectionStatus | "disabled">;Defined in: index.ts:52
A signal containing the current status of the collection