2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-07 09:22:24 +03:00

Merge pull request #84 from rhwilrForks/master

do not trigger a client refresh on the server side
This commit is contained in:
Sébastien Chopin
2017-05-12 17:12:17 +02:00
committed by GitHub
+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())
}
})