Closed
Description
Version
3.0.1
Reproduction link
https://codesandbox.io/embed/n48n7jpq6j
Steps to reproduce
- Add a beforeRouterEnter function that has a callback to a component
- Make the same component from step 1 use a mixin that also uses beforeRouteEnter with a callback
- The callback in the component will be called before the callback from the mixin which is inconsistent with how Vue handles the rest of the lifecycle methods.
Note that the mixin will actually be called before the component (expected behavior) but the callback in the mixin will not be (unexpected.)
What is expected?
The mixin beforeRouteEnter callback should be called before the components.
What is actually happening?
The components beforeRouterEnter callback is called before the mixins.