Fix issue with parent routes being rerendered when navigating to/from child route

This commit is contained in:
Jamison Lottering 2017-09-29 16:10:03 -07:00
parent f654c9c94c
commit 80f2dabd70

View File

@ -364,14 +364,6 @@ function fixPrepatch (to, ___) {
_lastComponentsFiles = instances.map((instance, i) => { _lastComponentsFiles = instances.map((instance, i) => {
if (!instance) return ''; if (!instance) return '';
if (_lastPaths[i] === instance.constructor._path && typeof instance.constructor.options.data === 'function') {
const newData = instance.constructor.options.data.call(instance)
for (let key in newData) {
Vue.set(instance.$data, key, newData[key])
}
}
return instance.constructor.options.__file return instance.constructor.options.__file
}) })