Hi,
How works the v1 preprocess function in v2
There is no such in v2. Something similar can be achieved using async routes http://framework7.io/docs/routes.html#async-route