2.5.22
https://jsfiddle.net/2ykhv8jq/
Create a route with beforeEnter handler which calls next with a callback function.
In jsfiddle.net click the button and check the console.
"Am i called" and the vm should be present.
Line with "Am i called" is not present.
Code borrowed from https://github.com/vuejs/vue-router/issues/737#issuecomment-446565958
A callback is only supported in the in-component beforeRoutEnter guard.
Is there a good reason for this? It's inconvenient!
Most helpful comment
Is there a good reason for this? It's inconvenient!