Skip to content
module@warp-drive/core

Function setIdentifierResetMethod() ​

ts
function setIdentifierResetMethod(method: ResetMethod | null): void;

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

Configure a callback for when the identifier cache is being torn down.

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

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

Takes a method which can expect to be called when the parent application is destroyed.

If you have properly used a WeakMap to encapsulate the state of your customization to the application instance, you may not need to implement the resetMethod.

Parameters ​

method ​

ResetMethod | null

Returns ​

void

Released under the MIT License.