Skip to content

Documentation / @warp-drive/core / setIdentifierForgetMethod

Function: setIdentifierForgetMethod()

ts
function setIdentifierForgetMethod(method): void;

Defined in: warp-drive-packages/core/src/store/-private/caches/identifier-cache.ts:229

Configure a callback for when the identifier cache is going to release an identifier.

This configuration MUST occur prior to the store instance being created.

js
import { setIdentifierForgetMethod } from '@warp-drive/core';

Takes method which can expect to receive an existing Identifier that should be eliminated from any secondary lookup tables or caches that the user has populated for it.

Parameters

method

null | ForgetMethod

Returns

void

Released under the MIT License.