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

Route update unexpectedly triggers watchers #2022

Closed
lwansbrough opened this issue Oct 19, 2023 · 1 comment
Closed

Route update unexpectedly triggers watchers #2022

lwansbrough opened this issue Oct 19, 2023 · 1 comment

Comments

@lwansbrough
Copy link

lwansbrough commented Oct 19, 2023

Reproduction

https://jsfiddle.net/sj1chxmd/2/

Steps to reproduce the bug

Observe behaviour in this repro (Vue 2.7): https://jsfiddle.net/sj1chxmd/2/
Then compare the behaviour in this repro (Vue 3): https://jsfiddle.net/sf2gutkr/1/

Expected behavior

The behaviour should be the same between the two examples.

Actual behavior

The presence of a reactive variable on the <router-view> in the Vue 3 version forces its descendants' watchers to update. I believe the correct behaviour should be the Vue 2.7 behaviour.

Additional information

Related:

Copy link
Member

posva commented Oct 19, 2023

Duplicate of vuejs/core#7030

@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
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