From 93f021b75796c49566c440a7c812345f22ff7426 Mon Sep 17 00:00:00 2001 From: pimlie Date: Sun, 10 Mar 2019 21:54:54 +0100 Subject: [PATCH] fix: only add navguards when refreshOnceOnNav is false --- src/shared/mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/mixin.js b/src/shared/mixin.js index 03ee7ed..362cc7b 100644 --- a/src/shared/mixin.js +++ b/src/shared/mixin.js @@ -94,7 +94,7 @@ export default function createMixin(Vue, options) { // add the navigation guards if they havent been added yet // if metaInfo is defined as a function, this does call the computed fn redundantly // but as Vue internally caches the results of computed props it shouldnt hurt performance - if (this.$options[options.keyName].afterNavigation) { + if (!options.refreshOnceOnNavigation && this.$options[options.keyName].afterNavigation) { addNavGuards(this) }