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

question of advanced async components and vue-router #1534

Open
myl0204 opened this Issue Mar 28, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@myl0204
Copy link

myl0204 commented Mar 28, 2018

Hi, i am new comer in vue and i have trouble reading the docs

following sentence are copied from the doc

Note that when used as a route component in vue-router, these properties will be ignored because async components are resolved upfront before the route navigation happens. You also need to use vue-router 2.4.0+ if you wish to use the above syntax for route components.

I wonder what it truly means?

if these properties will be ignored, why i use it for route components?

Also, i noticed that relative docs are updated 2 days ago

Note that you must use Vue Router 2.4.0+ if you wish to use the above syntax for route components.

I am very confused.

@chrisvfritz

This comment has been minimized.

Copy link
Member

chrisvfritz commented Apr 3, 2018

Thanks for reporting this! After some investigation, it actually looks like the syntax is only partially supported by Vue Router. The async component will load and be used, but the rest of the advanced options have no effect. You can use this strategy to work around the issue in the meantime, but I think the final solution will be to add more detail to Vue Router's doc on advanced async components, then update this page with a link to those details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment