Open
Description
Version
3.2.30
Reproduction link
Steps to reproduce
- Click increment
- Click change page
- Click increment
- Observe the logs
What is expected?
- Logs of One and then logs for Two (only)
What is actually happening?
After changing the page once, the Page One keeps rendering while being inactive
This has been confusing to many people but I couldn't find if this behavior is expected or not
- Inactive keep-alive component keeps updating if bound to nested properties vue#8819
- keep-alive component in nested route result in child route mounted twice router#626
This also means watchers are executed in deactivated branches
It also worth noting that the component being deactivated renders before being deactivated. Making it impossible to skip the render with likely incorrect data.