Open History to see the last commit
1---
2id: getLoadSubsetDemandKey
3title: getLoadSubsetDemandKey
4---
5
6```ts
7function getLoadSubsetDemandKey(options): DemandKey | undefined;
8```
9
10Defined in: [packages/db/src/query/ir-stable-identity.ts:97](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir-stable-identity.ts#L97)
11
12Returns the exact semantic identity of a loadSubset request.
13
14Abort signals and subscriptions are owners of a request, not part of the
15requested data, and therefore do not affect the key. `refetch` controls
16whether to start another acquisition attempt for that data and likewise does
17not affect identity. A demand generation scopes one asynchronous attempt
18rather than the data it requests. Code that rejects stale work compares this
19key alongside its generation; query-db uses the key alone so equivalent data
20demands can reuse one cache entry across generations.
21
22## Parameters
23
24### options
25
26[`LoadSubsetOptions`](../type-aliases/LoadSubsetOptions.md)
27
28## Returns
29
30[`DemandKey`](../type-aliases/DemandKey.md) \| `undefined`