Skip to content

Commit

Permalink
fix: graph instantiation should not be required (#8823)
Browse files Browse the repository at this point in the history
* fix: graph instantiation should not be required

* remove unneeded instantiations in tests
  • Loading branch information
runspired authored Sep 4, 2023
1 parent cdb7d4c commit 222df18
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions packages/-ember-data/addon/store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { graphFor } from '@ember-data/graph/-private';
import JSONAPICache from '@ember-data/json-api';
import { LegacyNetworkHandler } from '@ember-data/legacy-compat';
import { FetchManager } from '@ember-data/legacy-compat/-private';
Expand All @@ -20,7 +19,6 @@ export default class Store extends BaseStore {
this.requestManager.use([LegacyNetworkHandler, Fetch]);
this.requestManager.useCache(CacheHandler);
this.registerSchema(buildSchema(this));
graphFor(this);
}

createCache(storeWrapper: CacheCapabilitiesManager): Cache {
Expand Down
2 changes: 0 additions & 2 deletions tests/adapter-encapsulation/app/services/store.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { graphFor } from '@ember-data/graph/-private';
import JSONAPICache from '@ember-data/json-api';
import { LegacyNetworkHandler } from '@ember-data/legacy-compat';
import { FetchManager } from '@ember-data/legacy-compat/-private';
Expand All @@ -14,7 +13,6 @@ export default class Store extends BaseStore {
this.requestManager.use([LegacyNetworkHandler, Fetch]);
this.requestManager.useCache(CacheHandler);
this.registerSchema(buildSchema(this));
this._graph = graphFor(this);
}

createCache(storeWrapper) {
Expand Down
2 changes: 0 additions & 2 deletions tests/graph/app/services/store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { graphFor } from '@ember-data/graph/-private';
import JSONAPICache from '@ember-data/json-api';
import { LegacyNetworkHandler } from '@ember-data/legacy-compat';
import type Model from '@ember-data/model';
Expand All @@ -20,7 +19,6 @@ export default class Store extends BaseStore {
this.requestManager.use([LegacyNetworkHandler, Fetch]);
this.requestManager.useCache(CacheHandler);
this.registerSchema(buildSchema(this));
this._graph = graphFor(this);
}

createCache(storeWrapper: CacheCapabilitiesManager): Cache {
Expand Down
2 changes: 0 additions & 2 deletions tests/serializer-encapsulation/app/services/store.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { graphFor } from '@ember-data/graph/-private';
import JSONAPICache from '@ember-data/json-api';
import { LegacyNetworkHandler } from '@ember-data/legacy-compat';
import { FetchManager } from '@ember-data/legacy-compat/-private';
Expand All @@ -14,7 +13,6 @@ export default class Store extends BaseStore {
this.requestManager.use([LegacyNetworkHandler, Fetch]);
this.requestManager.useCache(CacheHandler);
this.registerSchema(buildSchema(this));
this._graph = graphFor(this);
}

createCache(storeWrapper) {
Expand Down

0 comments on commit 222df18

Please sign in to comment.