Axios stop ajax request if go to other route
-
Anybody know how close pending ajax requests in axios when user click by routes?
-
This question is not related to Quasar, but ok… Axios has a build-int cancellation feature: https://github.com/axios/axios#cancellation
I guess you might use this feature from a navigation guard: https://router.vuejs.org/en/advanced/navigation-guards.htmlGood luck!
-
@akaryatrh tnx