When I browse through the app, e.g., home/category/commerce/ and then back again from commerce to category, home page reloads (running its async function). Is it possible to browse stacking all the pages, to make sure they are allways on DOM? The queries made to my async function are too heavy and they slows down the browsing.
As you see, I am trying to use stackPages property with true value in the routes.js file, but didn’t work for me.
Using those options, the back navigation from commerce does not refresh the home page, but using refreshPage function the async content is never executed (due to the use of keepAlive: true, I guess).
Is there a way to prevent the home page refresh when I browse back from commerce, letting a manual refresh (calling refreshPage(), navigate() or something similar)?
With stackPages or keepAlive enabled, page added to DOM will not be refreshed, you need to do manual update logic inside of page:init event of this page