2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-15 05:12:25 +03:00

Merge pull request #81 from jazoom/master

fix bug where old metadata would persist after returning from a child route to the parent
This commit is contained in:
Sébastien Chopin
2017-04-06 12:01:11 +02:00
committed by GitHub
+4
View File
@@ -61,6 +61,10 @@ export default function VueMeta (Vue, options = {}) {
beforeMount () {
// batch potential DOM updates to prevent extraneous re-rendering
batchID = batchUpdate(batchID, () => this.$meta().refresh())
},
destroyed () {
// batch potential DOM updates to prevent extraneous re-rendering
batchID = batchUpdate(batchID, () => this.$meta().refresh())
}
})
}