[V4] Property "stackPages" not working on routes


#1

Using latest version of Webpack template.

This is my routes.js file:

import HomePage from '../pages/home.f7.html';
...

var routes = [
{
  path: '/',
  stackPages: true,
  async: function (routeTo, routeFrom, resolve, reject) {
    ...
    resolve({component: HomePage});
  }
},
...
]

export default routes;

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.


#2

Я недавно писал статью на форуме как правильно работать с stackPages. Она на русском, но можно воспользоваться переводчиком.


#3

Link to shastox post: