DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/functions/identifyLiveQuery.md
identifyLiveQuery
ts
function identifyLiveQuery<TIdentity>(
preparedValue,
scope,
identify): TIdentity;Defined in: packages/db/src/live-query-adapter.ts:138
Identify a prepared query for a binding that compares query identity. The identity throws UnhashableQueryIRError for IR without a stable identity, then the query's sources claim their Collection IDs. The binding's render boundary releases the sync starts a rejected render deferred; see rejectLiveQueryInput.
Type Parameters#
TIdentity#
TIdentity = unknown
Parameters#
preparedValue#
unknown
scope#
identify#
(preparedValue) => TIdentity
Returns#
TIdentity