We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951a425 commit 8e9acefCopy full SHA for 8e9acef
app/adapters/application.js
@@ -16,6 +16,23 @@ export default JSONAPIAdapter.extend({
16
metaStore: service(),
17
projectService: service('project'),
18
19
+ ids: null,
20
+
21
+ shouldBackgroundReloadAll() { return false; },
22
+ shouldBackgroundReloadRecord(store, snapshot) {
23
+ let key = `${snapshot.modelName}-${snapshot.id}`;
24
+ let hasId = this.ids[key];
25
+ if (!hasId) {
26
+ this.ids[key] = true;
27
+ }
28
+ return !hasId;
29
+ },
30
31
+ init() {
32
+ this._super(...arguments);
33
+ this.ids = {};
34
35
36
async findRecord(store, {modelName}, id) {
37
let url;
38
let host = this.host;
0 commit comments