You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use case desired here is to be able to have an addon that uses a service that would be provided by the app that uses it
one use case for this could be an intl service like ember-intl provides
it's encouraged for people to extend the service but the addon itself needs to use the service itself for the helper it provides
if the addon imports and sets the token from its own name space users will never be able to apply customizations to it and still have the addon use that version
need some way to get a hold of a token that is not known ahead of time inside the addon
The text was updated successfully, but these errors were encountered:
That part is not particular tricky, however, the last we discussed this in some meeting last year it came up that we need some kind of on-demand initializer setup to 1. ensure that app customization file is pulled into the build at all, and 2. ensure that the initialization ("providing the service") reliably happened before the first time anyone uses it.
Right now you can forego the lazy benefits and just import this file from your "app.js" entrypoint, but we agreed we needed some thing better than this, perhaps requiring Embroider support
sounds to me like we should use this issue to track progress on the polaris board for 1. and 2. you mentioned as the latter seems reasonable to have a better answer than just import in app.js
use case desired here is to be able to have an addon that uses a service that would be provided by the app that uses it
one use case for this could be an intl service like ember-intl provides
it's encouraged for people to extend the service but the addon itself needs to use the service itself for the helper it provides
if the addon imports and sets the token from its own name space users will never be able to apply customizations to it and still have the addon use that version
need some way to get a hold of a token that is not known ahead of time inside the addon
The text was updated successfully, but these errors were encountered: