Skip to content

Commit

Permalink
Don't cancel requests when the route hasn't changed
Browse files Browse the repository at this point in the history
  • Loading branch information
remixz committed May 30, 2017
1 parent bc6aa6e commit 5ccfb07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const router = new Router({

router.beforeEach((to, from, next) => {
// on all page changes aside from the initial load, we cancel in progress requests
if (from.name) {
if (from.name && from.name !== to.name) {
cancelCurrentRequests()
}
next()
Expand Down

0 comments on commit 5ccfb07

Please sign in to comment.