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
MdDialog seems to leak the displayed components #2734
I am using MdDialog to display some modal views defined by Angular 2 components. I observed that the instances of these components are still present in the browser snapshots after the dialog was closed. For example, I display a confirmation dialog for 10 times using a TwoOptions component. After that, the memory snapshot will contain 10 instances of the TwoOptions component.
What is the expected behavior?
No instance of the displayed components using MdDialog should remain.
What is the current behavior?
The instances of the displayed component are still present, being retained by MdDialogContainer.
What are the steps to reproduce?
Open and close a MdDialog view specifying a custom component.
Managed to track this one down, but am still looking for a proper fix. As an aside, we seem to be leaking some more objects as well: the MdDialogContainer and MdDialogRef instances. I'll try to address the other leaks separately.
Activity
crisbeto commentedon Jan 30, 2017
Managed to track this one down, but am still looking for a proper fix. As an aside, we seem to be leaking some more objects as well: the
MdDialogContainerandMdDialogRefinstances. I'll try to address the other leaks separately.fix(dialog): leaking component instance references
fix(dialog): leaking component instance references
fix(dialog): leaking component instance references (#2875)
sync from upstream (#1)
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.