Hope you are all well with a great weekend in front of you
Strangely it is only today that I have realised that Ionic actually stores the complete DOM of each page/view that is visited when you use [navPush] in the markup. In hindsight I would have structured my app slightly differently but I am where I am.
What I am concerned with is that if I click between views a lot I end up with a whole lot of stuff like in the attached picture!
This is obviously a stupid waste of resources, and I cannot believe I haven’t spotted this before.
Does anyone know the best practice in this situation? I can see that popping the stack, or doing a setRoot might help, but just wanted to ask first!