Open jamesarosen opened 6 years ago
I believe I have a fix for this that involves updating the way the base addon works. Namely I propose changing how the integrations are instantiated here to something like the following:
const adapterObject = adapter.create({ adaptable: this, config });
setOwner(adapterObject, getOwner(this));
return adapterObject;
Then updating this addon such that the insertTag
methods are not called on init but instead sequentially invoked from the createAdapters
methods after they have been activated.
Does this sound sensible to you or would you propose something more enlightened? I must admit I've not touched ember in about a year so I'm unfamiliar with all the advancements made.
I want to override
integration:google-analytics
to supply some default common values:That blows up because the integration doesn't have an owner.
I can sort of get around this by doing the override on
service:analytics
, but that could be problematic if different integrations need different formats.