Open History to see the last commit
1---
2id: identifyLiveQuery
3title: identifyLiveQuery
4---
5
6```ts
7function identifyLiveQuery<TIdentity>(
8 preparedValue,
9 scope,
10 identify): TIdentity;
11```
12
13Defined in: [packages/db/src/live-query-adapter.ts:138](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-adapter.ts#L138)
14
15Identify a prepared query for a binding that compares query identity. The
16identity throws `UnhashableQueryIRError` for IR without a stable identity,
17then the query's sources claim their Collection IDs. The binding's render
18boundary releases the sync starts a rejected render deferred; see
19`rejectLiveQueryInput`.
20
21## Type Parameters
22
23### TIdentity
24
25`TIdentity` = `unknown`
26
27## Parameters
28
29### preparedValue
30
31`unknown`
32
33### scope
34
35[`LiveQueryIdentityScope`](../interfaces/LiveQueryIdentityScope.md)
36
37### identify
38
39(`preparedValue`) => `TIdentity`
40
41## Returns
42
43`TIdentity`