You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.