DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/functions/getLoadSubsetDemandKey.md
getLoadSubsetDemandKey
ts
function getLoadSubsetDemandKey(options): DemandKey | undefined;Defined in: packages/db/src/query/ir-stable-identity.ts:97
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. refetch controls whether to start another acquisition attempt for that data and likewise does not affect identity. 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#
Returns#
DemandKey | undefined