@ember-data/store 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/addon/-private.js CHANGED
@@ -5019,12 +5019,11 @@ class Store extends EmberObject {
5019
5019
  // during unload
5020
5020
  if (macroCondition(getOwnConfig().packages.HAS_GRAPH_PACKAGE)) {
5021
5021
  const peekGraph = importSync('@ember-data/graph/-private').peekGraph;
5022
- let graph = peekGraph(this);
5022
+ const graph = peekGraph(this);
5023
5023
  if (graph) {
5024
5024
  graph.identifiers.clear();
5025
5025
  }
5026
5026
  }
5027
- this.notifications.destroy();
5028
5027
  this.recordArrayManager.clear();
5029
5028
  this._instanceCache.clear();
5030
5029
  } else {
@@ -5540,6 +5539,7 @@ class Store extends EmberObject {
5540
5539
  graph.destroy();
5541
5540
  }
5542
5541
  }
5542
+ this.notifications.destroy();
5543
5543
  this.recordArrayManager.destroy();
5544
5544
  this.identifierCache.destroy();
5545
5545
  this.unloadAll();