PageInit running twice

{
path: ‘/’,
url: ‘./index.html’,
name: ‘home’,
on: {
pageAfterIn: function (event, page) {
console.log('load after in ');
},
pageInit: function (event, page) {

      console.log('running twice here');

    },
    pageAfterOut: function () {
      
    }
}

},

It could be in case you have multiple views in app pointing to same route

how could that be?
I have no idea how I could have done this

add:

console.log(page);

and use your browser to look at the output. It should have page information. See if it’s the same page or not.

Thanks, there were two view init in my index.

How can we avoid this if we have a view-init for a popover?

1 Like