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

keep-alive and router-view cause subpages to render repeatedly #1707

Closed
isLiuyinghao opened this issue Feb 20, 2023 · 2 comments
Closed

keep-alive and router-view cause subpages to render repeatedly #1707

isLiuyinghao opened this issue Feb 20, 2023 · 2 comments

Comments

@isLiuyinghao
Copy link

isLiuyinghao commented Feb 20, 2023

Version

4.1.6

Reproduction link

codesandbox.io

Steps to reproduce

This is my demo: https://codesandbox.io/s/vue3-teleport-forked-61bxxv?file=/src/page1/index.vue

After entering the page, click '111' to jump to another page, and you can see that the 'onMounted' method of this page is triggered twice

What is expected?

Subpages are only rendered once

What is actually happening?

Subpages are only rendered multiple times

@posva
Copy link
Member

posva commented Feb 20, 2023

Duplicate of #626

@posva posva marked this as a duplicate of #626 Feb 20, 2023
@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2023
@posva
Copy link
Member

posva commented Feb 20, 2023

Please, search existing issues and pull requests before opening issues, it saves maintainers a lot of time 🙏

@vuejs vuejs locked and limited conversation to collaborators Feb 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants