From 631cc9c9c9fc89be589709e04d230f2b678ac181 Mon Sep 17 00:00:00 2001 From: pimlie Date: Thu, 12 Sep 2019 12:28:43 +0200 Subject: [PATCH] refactor: destroyed never runs on server anyway --- src/shared/mixin.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shared/mixin.js b/src/shared/mixin.js index 8cddf87..788e24a 100644 --- a/src/shared/mixin.js +++ b/src/shared/mixin.js @@ -66,7 +66,6 @@ export default function createMixin (Vue, options) { // credit for this suggestion goes to [Sébastien Chopin](https://github.com/Atinux) ensuredPush(this.$options, 'created', () => { this.$watch('$metaInfo', () => { - this.__metaInfo = undefined triggerUpdate(this, 'watcher') }) }) @@ -142,10 +141,9 @@ export default function createMixin (Vue, options) { // TODO: move back into beforeCreate when Vue issue is resolved destroyed () { // do not trigger refresh: - // - on the server side // - when the component doesnt have a parent // - doesnt have metaInfo defined - if (this.$isServer || !this.$parent || !hasMetaInfo(this)) { + if (!this.$parent || !hasMetaInfo(this)) { return }