My app stack is angular5 and electron2, using also angular material 2.
Trying to solve a memory leak, I notice that each time a material dialog is opened, another detached DOM tree is added. I can't find anything different in my code comparing to other similar projects, which do not have this kind of behaviour.
I'v added take(1)
to to every dialog subscription, and in general I have add .unsubscribe()
from any subjects to components onDestroy()
.
edit:
edit:
Follow up on github: https://github.com/angular/components/issues/12114