No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Axios stop ajax request if go to other route

    Help
    2
    3
    930
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      snezhkois last edited by

      Anybody know how close pending ajax requests in axios when user click by routes?

      1 Reply Last reply Reply Quote 0
      • Akaryatrh
        Akaryatrh last edited by

        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.html

        Good luck!

        S 1 Reply Last reply Reply Quote 0
        • S
          snezhkois @Akaryatrh last edited by

          @akaryatrh tnx

          1 Reply Last reply Reply Quote 0
          • First post
            Last post