MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / shouldReloadRecord

Method shouldReloadRecord

app/adapters/application.js:19–26  ·  view source on GitHub ↗
(store, { modelName, id })

Source from the content-addressed store, hash-verified

17
18 shouldReloadRecord(store, { modelName, id }) {
19 if (modelName === 'project') {
20 this.currentProject = id;
21 } else if (modelName === 'project-version') {
22 this.currentProjectVersion = id;
23 }
24 return; // return undefined so auto determinated
25 }
26
27 shouldBackgroundReloadAll() {
28 return false;
29 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected