Skip to content

Commit

Permalink
add ember-data-fastboot
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 22, 2024
1 parent e948ba8 commit 7edf193
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import JSONAPIAdapter from '@ember-data/adapter/json-api';

export default class ApplicationAdapter extends JSONAPIAdapter {
shouldBackgroundReloadAll() {
return false;
}

shouldBackgroundReloadRecord() {
return false;
}

urlForFindAll(modelName) {
const path = this.pathForType(modelName);
return `/data/${path}/all.json`;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"ember-cli-terser": "^4.0.2",
"ember-composable-helpers": "^5.0.0",
"ember-data": "~3.28.0",
"ember-data-fastboot": "github:cardstack/ember-data-fastboot",
"ember-export-application-global": "^2.0.1",
"ember-fetch": "^8.1.1",
"ember-href-to": "^5.0.0",
Expand Down

0 comments on commit 7edf193

Please sign in to comment.