From a77b2ed4879d7212f6b7be4a74dfc3fc8f9b1d04 Mon Sep 17 00:00:00 2001 From: jazoom Date: Thu, 6 Apr 2017 19:14:18 +1000 Subject: [PATCH] fix bug where old metadata would persist after returning from a child route to the parent --- src/shared/plugin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shared/plugin.js b/src/shared/plugin.js index a4bd1e5..352e072 100644 --- a/src/shared/plugin.js +++ b/src/shared/plugin.js @@ -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()) } }) }