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
This would allow the router to read navigation guards added through mixins without having to instantiate the components. It was possible in Vue 2 with Vue.extend
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What problem does this feature solve?
This would allow the router to read navigation guards added through mixins without having to instantiate the components. It was possible in Vue 2 with
Vue.extend
From vuejs/router#454
What does the proposed API look like?
mixins
optionapp
is provided, also apply global mixinsThis is of course just an idea, maybe it doesn't make sense to allow passing
app
.It could also be a function like
applyMixins(componentOptions)
and I could appendapp._context.mixins
Beta Was this translation helpful? Give feedback.
All reactions