File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/ember-cli-fastboot/addon/services Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11/* global FastBoot */
2+ import { getOwner } from '@ember/application' ;
23import { computed , get } from '@ember/object' ;
34import { readOnly } from '@ember/object/computed' ;
45import { assert } from '@ember/debug' ;
@@ -88,6 +89,11 @@ const FastBootService = Service.extend({
8889 return RequestObject . create ( { request : get ( this , '_fastbootInfo.request' ) } ) ;
8990 } ) ,
9091
92+ _fastbootInfo : computed ( function ( ) {
93+ // this getter is to avoid deprecation from [RFC - 680](https://github.com/emberjs/rfcs/pull/680)
94+ return getOwner ( this ) . lookup ( 'info:-fastboot' ) ;
95+ } ) ,
96+
9197 deferRendering ( promise ) {
9298 assert ( 'deferRendering requires a promise or thennable object' , typeof promise . then === 'function' ) ;
9399 this . _fastbootInfo . deferRendering ( promise ) ;
You can’t perform that action at this time.
0 commit comments