Skip to content
module@warp-drive/core
ts
function setKeyInfoForResource(method): void;

Defined in: core/src/store/-private/managers/cache-key-manager.ts:283

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.