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
If there are elements nested inside an in-element helper, they get rendered to a remote element defined by destinationElement. If this remote element is removed from the DOM, the elements nested inside the in-element helper are destroyed. However, their destroy hooks are not triggered.
This can cause leakage and stale reference exceptions to occur, because modifier and component destroy hooks did not get a chance to do cleanup.
I've found a similar lifecycle issue for modifiers when conditionally rendered, and have repro steps in the issue reported to ember-modifier: ember-modifier/ember-modifier#613
Unsure if it's related, but wanted to call it out in case they are
馃悶 Describe the Bug
If there are elements nested inside an
in-element
helper, they get rendered to a remote element defined bydestinationElement
. If this remote element is removed from the DOM, the elements nested inside thein-element
helper are destroyed. However, their destroy hooks are not triggered.This can cause leakage and stale reference exceptions to occur, because modifier and component destroy hooks did not get a chance to do cleanup.
馃敩 Minimal Reproduction
Glimdown reproduction
馃槙 Actual Behavior
馃 Expected Behavior
馃實 Environment
The text was updated successfully, but these errors were encountered: