Keep a page permanently cached/in the Navigation Stack

Hi,

Is it possible to keep a page (cached) in the navigation stack when it has been loaded once? For example a page with a lot of content that takes 6 or 7 seconds to load?

As I understand it, a page is kept in the stack and therefore cached until it is popped, but I want to know if the user has loaded it once already and if so, keep it there.

Thanks!

Yes, just never pop it off the stack. Though honestly your design probably has issues if you have a 7 second pause. Better to use Observables so your page rendering is nonblocking.

I’d look into Observables as @AaronSterling said along with something like Ionic Cache (don’t have a link handy unfortunately) which works really well with caching Observables.