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
{{ message }}
Repository navigation
renderComponent should automatically cleanup if the parentElement (the element passed to into) is removed from the DOM #21097
I'd like to work on this issue. I'm planning to start by adding coverage for removing the into element and clearing its children, while preserving the existing detached-element behavior. Would a MutationObserver-based approach be aligned with the intended implementation?
here is the code you need to do just that in user space -- not sure it's a good idea to have the framework add MutationObservers for "just in case" scenarios
Activity
mtzamorim commentedon Sep 7, 2026
I'd like to work on this issue. I'm planning to start by adding coverage for removing the into element and clearing its children, while preserving the existing detached-element behavior. Would a MutationObserver-based approach be aligned with the intended implementation?
NullVoxPopuli commentedon Sep 7, 2026
It is the only way, afaik
NullVoxPopuli commentedon Sep 14, 2026
here is the code you need to do just that in user space -- not sure it's a good idea to have the framework add MutationObservers for "just in case" scenarios
Demo
Code: