Open History to see the last commit
function createLiveQueryObserver<T, TKey>(collection, options): LiveQueryObserver<T, TKey>;
Defined in: packages/db/src/live-query-observer.ts:1203
Internal
Create a LiveQueryObserver for a resolved live-query collection, or a
disabled observer when collection is null/undefined.
This is an unstable contract shared by TanStack DB's official framework adapters. It is exported so the adapter packages can use it, but it is not a public extension point yet: its API may change in any release without a semver major.
Type Parameters#
T#
T extends object
TKey#
TKey extends string | number
Parameters#
collection#
Collection<T, TKey, any, StandardSchemaV1<unknown, unknown>, T> | null | undefined
options#
CreateLiveQueryObserverOptions = {}
Returns#
LiveQueryObserver<T, TKey>