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:100](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir-stable-identity.ts#L100)
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. A demand generation
16scopes one asynchronous attempt rather than the data it requests. Code that
17rejects stale work compares this key alongside its generation; query-db uses
18the key alone so equivalent data demands can reuse one cache entry across
19generations.
20
21## Parameters
22
23### options
24
25[`LoadSubsetOptions`](../type-aliases/LoadSubsetOptions.md)
26
27## Returns
28
29[`DemandKey`](../type-aliases/DemandKey.md) \| `undefined`