From e70c1dbafceae0822718648919c7b42e545a2bff Mon Sep 17 00:00:00 2001 From: Ralph Huwiler Date: Fri, 14 Apr 2017 09:40:53 +0200 Subject: [PATCH] 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 352e072..af746c7 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()) } })