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