Skip to content

Commit 93f021b

Browse files
pimlieTheAlexLichter
authored andcommitted
fix: only add navguards when refreshOnceOnNav is false
1 parent 93fb900 commit 93f021b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function createMixin(Vue, options) {
9494
// add the navigation guards if they havent been added yet
9595
// if metaInfo is defined as a function, this does call the computed fn redundantly
9696
// but as Vue internally caches the results of computed props it shouldnt hurt performance
97-
if (this.$options[options.keyName].afterNavigation) {
97+
if (!options.refreshOnceOnNavigation && this.$options[options.keyName].afterNavigation) {
9898
addNavGuards(this)
9999
}
100100

0 commit comments

Comments
 (0)