ReadonlyatomReadonlycompletenessHow much of the answer the current results hold. Reading it never notifies; subscribers are notified only when results change.
ReadonlyentriesCurrently available results along with their match metadata.
ReadonlyresultsCurrently available results.
ReadonlysourcesPer-source progress of the live query.
Returns first result if there is one.
Optionalopts: RunOptionsReturns all known results along with their match metadata.
Optionalopts: RunOptionsReturns currently available results synchronously.
Subscribes to changes in query results.
Optionalcallback: (query: QueryResult.QueryResult<T>) => voidOptionalopts: SubscriptionOptions
Self-updating atom. Updates automatically when query results change.
Memoized per QueryResult instance — repeated accesses on the same instance return the same Atom. Safe only when the QueryResult is itself held stable across re-renders (e.g. behind a
useMemo). It must NOT be used in graph-builder connectors/actions or other atom computes, wheredb.query(...)is called fresh on each re-evaluation: every run constructs a new QueryResult and so a new atom + subscription, leaking the previous ones. Use the memoized atom family there instead.