mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-07 12:22:25 +03:00
fix bug where old metadata would persist after returning from a child route to the parent
This commit is contained in:
@@ -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())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user