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:
@@ -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