Skip to content
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

Configured with routing function to generate lazy loading will not work #2112

Closed
lynzz opened this issue Mar 16, 2018 · 1 comment
Closed

Comments

@lynzz
Copy link

lynzz commented Mar 16, 2018

Version

3.0.1

Reproduction link

https://codesandbox.io/s/63ljm6z9k

Steps to reproduce

  1. Routed to the User, view router-view content
  2. Routed to the Log, view router-view content

What is expected?

  1. Routed to the User, router-view content for the user
  2. Routed to the Log, router-view content for the log

What is actually happening?

  1. Routed to the User, router-view content remains at home
  2. Routed to the Log, router-view content remains at home

Lazy loading can be defined directly on a home and not using a function to handle, is the import did not permit such treatment

@posva
Copy link
Member

posva commented Mar 16, 2018

This is a webpack question, please use the forum, the Discord server or StackOverflow for questions.


BTW, you probably want to use item.component instead of item.components

@posva posva closed this as completed Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants