2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-08 11:22:25 +03:00

do not trigger a client refresh on the server side

This commit is contained in:
Ralph Huwiler
2017-04-14 09:40:53 +02:00
parent 39fea55de9
commit e70c1dbafc
+3 -1
View File
@@ -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())
}
})