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

Some routes leave their components in the router-view after routeLeave when built #572

Closed
tajnymag opened this issue Nov 3, 2020 · 2 comments

Comments

@tajnymag
Copy link

tajnymag commented Nov 3, 2020

Version

4.0.0-rc.1

Reproduction link

https://github.com/Tajnymag/vue-route-bleed-poc

Steps to reproduce

  1. build the project
  2. open in the browser
  3. click on the "Table" link
  4. click on the "Index" link

What is expected?

All of the elements of the Table route should be removed from DOM and only elements of route Index should be present.

What is actually happening?

Except <h1>, <table> and <button> are appended to the App's body. The word "appended" is important, as the old bleeded components are not removed and so we can get multiple copies of them.

How it looks after some time


For some reason, it works as expected when ran using the vite's dev server. It suddenly starts bugging out when built and served on your own.

@posva
Copy link
Member

posva commented Nov 3, 2020

It seems to happen with a dynamic component without the router but can't tell yet where the problem is exactly

@posva
Copy link
Member

posva commented Nov 3, 2020

Opened vuejs/core#2553

@posva posva closed this as completed Nov 3, 2020
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