Closed xg-wang closed 2 years ago
I think we can do this without a breaking change. The deprecation does nto fire when you call instance.inject
it gets called when you the FastBoot service is created. So we can always call instance.inject
then we can update fastboot
service to use a caching getter to grab the value. Using that setup will avoid the deprecation, and avoid requiring us to rev the schema.
See these tests in Ember for examples of how to avoid the deprecation on create:
These techniques can be used to significantly reduce the changes required to avoid the deprecaiton.
@rwjblue oh that's nice, thanks for the examples. I'll update the PR
Moved to draft for now (lemme know when ready for another round of review)
Implicit injection is deprecated https://deprecations.emberjs.com/v3.x#toc_implicit-injections
Fixes https://github.com/ember-fastboot/ember-cli-fastboot/issues/819 Depends on https://github.com/ember-fastboot/ember-cli-fastboot/pull/822
This is breaking change because user needs to upgrade to compatible
fastboot