SOLVED - Click and reload the page

Hi.

I need to reload the current page when I click my button or a href like we easily do with location.reload(); This sounds really simple but I cannot find the exact example for Framework7.

P.S. I am working on html-vanilla js, not with any other js framework.

Result: I solved the problem by fixing my js function and using Pull to Refresh (Official Doc) function.

You just solved but maybe this helps.

$$('#button').on('click', function () {
  mainView.router.navigate(mainView.router.currentRoute.url, {
      reloadCurrent: true,
      ignoreCache: true,
  });
});
1 Like