Page in history reloads when using the back button

Hi!

I open page A, then open another page B from there and then open page C. All of them have a database call loading data in their onPageInit event.

When closing page C via the back button, page A is loaded back into the DOM, but not as expected in the previous state but rather reloaded from scratch including the database call.

Is there any way to stop this behaviour and just restore the previous state of page A?

Thanks in advance!

https://framework7.io/docs/routes.html#keep-alive
or
stackPages: https://framework7.io/docs/view.html#view-parameters

1 Like

Thanks a lot, that’s exactly what I was looking for! :+1: