Skip to content

Documentation / @warp-drive/core / setKeyInfoForResource

Function: setKeyInfoForResource()

ts
function setKeyInfoForResource(method): void;

Defined in: warp-drive-packages/core/src/store/-private/managers/cache-key-manager.ts:285

Configure a callback for when the identifier cache is generating a new ResourceKey for a resource.

This method controls the type and id that will be assigned to the ResourceKey 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

Released under the MIT License.