From e70c1dbafceae0822718648919c7b42e545a2bff Mon Sep 17 00:00:00 2001 From: Ralph Huwiler Date: Fri, 14 Apr 2017 09:40:53 +0200 Subject: [PATCH 1/2] do not trigger a client refresh on the server side --- src/shared/plugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/plugin.js b/src/shared/plugin.js index 352e072b..af746c78 100644 --- a/src/shared/plugin.js +++ b/src/shared/plugin.js @@ -63,7 +63,9 @@ export default function VueMeta (Vue, options = {}) { batchID = batchUpdate(batchID, () => this.$meta().refresh()) }, destroyed () { - // batch potential DOM updates to prevent extraneous re-rendering + //do not trigger refresh on the server side + if (this.$isServer) return + // re-render meta data when returning from a child component to parent batchID = batchUpdate(batchID, () => this.$meta().refresh()) } }) From 8afbe889f654c23400197e44a636851d70b68bee Mon Sep 17 00:00:00 2001 From: Ralph Huwiler Date: Fri, 14 Apr 2017 10:36:43 +0200 Subject: [PATCH 2/2] fixed styling --- src/shared/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/plugin.js b/src/shared/plugin.js index af746c78..61710ee7 100644 --- a/src/shared/plugin.js +++ b/src/shared/plugin.js @@ -63,7 +63,7 @@ export default function VueMeta (Vue, options = {}) { batchID = batchUpdate(batchID, () => this.$meta().refresh()) }, destroyed () { - //do not trigger refresh on the server side + // do not trigger refresh on the server side if (this.$isServer) return // re-render meta data when returning from a child component to parent batchID = batchUpdate(batchID, () => this.$meta().refresh())