Version
2.5.3
Reproduction link
https://github.com/zsalzbank/vue-router-before-route-enter-mixin-single-file-component
Steps to reproduce
- Load the minimal reproduction in the browser and open the developer console.
- Notice that there is no message with
bre or bre next. (There will be one with be.)
- Click the
World link.
- Notice that there is no message with
bre or bre next. (There will be one with be.)
- Click the
Hello link.
- Notice that the console logged
bre and bre next. (There will be one with be too.)
- Click the
World link.
- Notice that the console logged
bre and bre next. (There will be one with be too.)
What is expected?
The bre and bre next messages are shown when the page loads initially. They should also be shown when navigating to the World link for the first time.
What is actually happening?
The messages are not shown.
This does work when the component is not a single file component. An example of this can be found here: http://jsfiddle.net/wq4kftpa/5/