Skip to content

Commit 4f7da0d

Browse files
committed
fix beforeEach hook promise boolean handling
1 parent bd416c0 commit 4f7da0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ class Router {
419419
if (beforeHooks.length) {
420420
transition.runQueue(beforeHooks, (hook, _, next) => {
421421
if (transition === this._currentTransition) {
422-
transition.callHook(hook, null, next, true)
422+
transition.callHook(hook, null, next, {
423+
expectBoolean: true
424+
})
423425
}
424426
}, startTransition)
425427
} else {

0 commit comments

Comments
 (0)