Skip to content

Documentation / @warp-drive/core / setIdentifierResetMethod

Function: setIdentifierResetMethod()

ts
function setIdentifierResetMethod(method): void;

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

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

null | ResetMethod

Returns

void

Released under the MIT License.