module@warp-drive/core/types/identifier
Type Alias ResourceKey<T>
ts
type ResourceKey<T> =
| PersistedResourceKey<T>
| NewResourceKey<T>;Defined in: warp-drive-packages/core/src/types/identifier.ts:134
A referentially stable object with a unique string (lid) that can be used as a reference to data in the cache.
Every resource has a unique ResourceKey, and ResourceKeys may refer to data that has never been loaded (for instance, in an async relationship).
Type Parameters
T
T extends string = string