-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Open
Labels
🐞 bugSomething isn't workingSomething isn't workingneed guidanceThe approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.The approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.scope: suspense
Description
Vue version
latest
Link to minimal reproduction
Steps to reproduce
- click the button
What is expected?
only one watcher should trigger
What is actually happening?
both, the watcher of the leaving and entering component are benig triggered
System Info
No response
Any additional comments?
In this scenario the update of the variable being watched is what triggers the switch
Is this just a race condition? Since the old component still needs to display, I would say it's normal for it to render due to watchers. This would require vue router to have a special handling of the current route so
danielroe, adamjedlicka, shengxinjing, moushicheng and nicolas-t
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't workingneed guidanceThe approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.The approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.scope: suspense