From fed644ddf68717191bdef43f12946139b81e6c9c Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Mon, 21 Aug 2017 13:54:41 +0200 Subject: [PATCH] Fix #1423 --- lib/app/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/app/client.js b/lib/app/client.js index 16af55ec73..77c67da46f 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -36,7 +36,7 @@ Vue.config.errorHandler = function (err, vm, info) { err.message = err.message || err.toString() // Show Nuxt Error Page - if(vm && vm.$root && vm.$root.$nuxt && vm.$root.$nuxt.error && info !== 'render function') { + if(vm && vm.$root && vm.$root.$nuxt && vm.$root.$nuxt.error && info !== 'render function') { vm.$root.$nuxt.error(err) } @@ -280,7 +280,7 @@ async function render (to, from, next) { await Promise.all(Components.map((Component, i) => { // Check if only children route changed Component._path = compile(to.matched[i].path)(to.params) - if (!this._hadError && Component._path === _lastPaths[i] && (i + 1) !== Components.length) { + if (!this._hadError && this._isMounted && Component._path === _lastPaths[i] && (i + 1) !== Components.length) { return Promise.resolve() }