Home page crashed after navigating with mainView.router.navigate('/');

Hi everyone, could you please help me solve this bug?
I navigated back to home page with mainView.router.navigate(’/’), after the navigation back to home page the home page crashed, all the events on the home page no longer work, including the tab on the home page it no longer works

this is my code, i’m using f7 core
my app initialization

var app = new Framework7({
// App root element
el: '#app',
// App Name
name: 'appName',
// App id
id: 'com.app.id',
// Enable swipe panel
panel: {
    swipe: true,
},
statusbar: {
  iosOverlaysWebView: false,
  androidOverlaysWebView: false,
  androidBackgroundColor: 'green'
},

view: {
  pushState: true,
  stackPages: true,
},

iosTranslucentBars: false,
iosTranslucentModals: false,
// navbar
navbar: {
    showOnPageScroll: true,
    // iosCenterTitle: false,
},
// Add default routes
routes: routes
// ... other parameters
});
// THEN MY VIEW INITIALIZATION
var mainView = app.views.create('.view-main', {
  url: '/',
  stackPages: true 
});

Please post your code so we can help you

1 Like

ok, i’ll update my question