From 8903db1c27942088754b8a37568e8fc364ed8c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 28 Feb 2018 16:40:59 +0100 Subject: [PATCH] fix: Fix watchQuery on reused page component --- lib/app/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/client.js b/lib/app/client.js index dc376da6da..0f6deac4b5 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -397,7 +397,7 @@ function fixPrepatch(to, ___) { instances.forEach((instance, i) => { if (!instance) return - if (to.matched[matches[i]].path.indexOf(':') === -1) return // If not a dyanmic route, skip + if (!this._queryChanged && to.matched[matches[i]].path.indexOf(':') === -1 && to.matched[matches[i]].path.indexOf('*') === -1) return // If not a dynamic route, skip if (instance.constructor._dataRefresh && _lastPaths[i] === instance.constructor._path && typeof instance.constructor.options.data === 'function') { const newData = instance.constructor.options.data.call(instance) for (let key in newData) {