Skip to content

Commit 7af45b4

Browse files
Gaurav Munjalrunspired
authored andcommitted
[BUGFIX RELEASE BETA CANARY] Fastboot issues (#6683) (#6708)
* [BUGFIX BETA CANARY] Fastboot issues * move tsconfig.json changes to root file
1 parent c408dd1 commit 7af45b4

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

packages/-fastboot-test-app/tsconfig.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/adapter/addon/rest.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,18 @@ const RESTAdapter = Adapter.extend(BuildURLMixin, {
294294

295295
_defaultContentType: 'application/json; charset=utf-8',
296296

297-
fastboot: computed(function() {
298-
return getOwner(this).lookup('service:fastboot');
297+
fastboot: computed({
298+
// Avoid computed property override deprecation in fastboot as suggested by:
299+
// https://deprecations.emberjs.com/v3.x/#toc_computed-property-override
300+
get() {
301+
if (this._fastboot) {
302+
return this._fastboot;
303+
}
304+
return getOwner(this).lookup('service:fastboot');
305+
},
306+
set(key, value) {
307+
this._fastboot = value;
308+
},
299309
}),
300310

301311
useFetch: computed(function() {

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
"@ember-data/record-data/*": ["packages/record-data/addon/*"],
3535
"@ember-data/canary-features": ["packages/canary-features/addon"],
3636
"@ember-data/canary-features/*": ["packages/canary-features/addon/*"],
37-
"*": ["packages/store/types/*", "packages/record-data/types/*"]
37+
"fastboot-test-app/tests/*": ["tests/*"],
38+
"fastboot-test-app/*": ["app/*"],
39+
"*": ["packages/store/types/*", "packages/record-data/types/*", "packages/fastboot-test-app/types/*"]
3840
}
3941
},
4042
"include": [

0 commit comments

Comments
 (0)