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:
@@ -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())
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user