I’m working in Framework7 Vue App with single View. In second page, in mounted function, I request data from external API using axios.
I know that axios have cancelToken utility to stop request, and I would intercept “click” event of back link, but I think that the correct way is doing in page router events…
beforeRouteLeave(to, from, next) doesn’t works.
How can I stop request If user press back button??
Thank you in advance!
Solution based on this thread: on.pageInit not working with Vue