-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.0] Can't resolve beforeRouteEnter
with async component
#625
Comments
What does happen? |
@LinusBorg |
Actually, I think the We use it to resolve async data but we still need to define it when the component initialization on For now, I prefer to use the So, |
@JounQin using meta is hacky because you are mutating the same object over time, AND if you do not declare it in Declaring fields in |
Vue.js & vue-router.js version
2.0.0-rc.4, 2.0.0-rc.4
Reproduction Link
https://github.com/JounQin/vue-router/commit/d8c6b9febc50b853fb2753d89c5f241e969368ba
Steps to reproduce
just change
Qux.vue
to an async componentWhat is Expected?
resolve async data at the first time
What is actually happening?
it doesn't work at the first time but when entering the route next time, it works.
The text was updated successfully, but these errors were encountered: