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
we're trying to use single-spa with angular and ember side by side, according to the route, either ember or angular is active. when ember is unmounted, single-spa calls opts.applicationInstance.destroy();
this works until ember-destroyable-polyfill is added. then the app instance continues to exist even after destroy() is called on it.
I tested the behavior in an empty ember app (without the single-spa-ember or any other addon). without ember-destroyable-polyfill upon calling destroy() on the app, all DOM nodes are removed and the app instance (in our case EmberLeak) is undefined. but adding this addon causes the EmberLeak instance to continue to exist, and no content is removed from the DOM.
this actually results in a weird state when using in single-spa when switching back and forth between angular and ember. each time there's another app instance added and all ajax requests get multiplied. (also causes other issues)
Hi,
we're trying to use
single-spa
with angular and ember side by side, according to the route, either ember or angular is active. when ember is unmounted, single-spa callsopts.applicationInstance.destroy();
this works until ember-destroyable-polyfill is added. then the app instance continues to exist even after
destroy()
is called on it.I tested the behavior in an empty ember app (without the
single-spa-ember
or any other addon). withoutember-destroyable-polyfill
upon callingdestroy()
on the app, all DOM nodes are removed and the app instance (in our caseEmberLeak
) isundefined
. but adding this addon causes theEmberLeak
instance to continue to exist, and no content is removed from the DOM.this actually results in a weird state when using in single-spa when switching back and forth between angular and ember. each time there's another app instance added and all ajax requests get multiplied. (also causes other issues)
The text was updated successfully, but these errors were encountered: