W3cubDocs

/Ember.js 4

Function

setIdentifierResetMethod (method) public

Module: @ember-data/store
method

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

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

import { setIdentifierResetMethod } from '@ember-data/store';

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.

© 2022 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember-data/4.9/functions/@ember-data%2Fstore/setIdentifierResetMethod