Retrieve resolved options of a component based on its mixins and app mixins #2119
Labels
✨ feature request
New feature or request
transferred to rfc discussions
Please manually search in http://github.com/vuejs/rfcs/discussions for the latest discussions
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
The text was updated successfully, but these errors were encountered: