Skip to content

Documentation / @warp-drive/core / types/identifier / ResourceKey

Type Alias: ResourceKey<T>

ts
type ResourceKey<T> = 
  | PersistedResourceKey<T>
| NewResourceKey<T>;

Defined in: core/src/types/identifier.ts:111

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

Released under the MIT License.