TanStack

getLoadSubsetDemandKey

Function: getLoadSubsetDemandKey()

ts
function getLoadSubsetDemandKey(options): DemandKey | undefined;

Defined in: packages/db/src/query/ir-stable-identity.ts:111

Returns the exact semantic identity of a loadSubset request.

Abort signals and subscriptions are owners of a request, not part of the requested data, and therefore do not affect the key. A demand generation scopes one asynchronous attempt rather than the data it requests. Code that rejects stale work compares this key alongside its generation; query-db uses the key alone so equivalent data demands can reuse one cache entry across generations.

Parameters

options

LoadSubsetOptions

Returns

DemandKey | undefined