Documentation / @warp-drive/core / setKeyInfoForResource
Function: setKeyInfoForResource()
ts
function setKeyInfoForResource(method): void;
Defined in: warp-drive-packages/core/src/store/-private/caches/identifier-cache.ts:268
Configure a callback for when the identifier cache is generating a new StableRecordIdentifier for a resource.
This method controls the type
and id
that will be assigned to the StableRecordIdentifier
that is created.
This configuration MUST occur prior to the store instance being created.
js
import { setKeyInfoForResource } from '@warp-drive/core';
Parameters
method
null
| KeyInfoMethod
Returns
void