-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Component in keep alive receives activated
event when being deactivated
#5323
Comments
Can you create a reproduction without the router? This will help to move forward. You can use this playground as a starting point |
Hello @posva, I can't reproduce the bug without vue-router ( |
The repro is not exactly the same because, in Vue Router, nested components are dynamic and keep rendering (cf the issue you linked) which is why they get activated/deactivated, the nested children are rendered twice. It's similar (but not exactly the same) as this Let's close this in favor of #5386 because solving that would solve this too. |
Version
3.2.29
Reproduction link
code : github.com
demo : netlify.com
Steps to reproduce
What is expected?
Since it's being deactivated
NestedAbout
component should not receive theactivated
lifecycle eventWhat is actually happening?
NestedAbout
component is receiving theactivated
lifecycle eventWe can also notice that
NestedHome
is mounted twice, as reported here:vuejs/router#626 (comment)
The text was updated successfully, but these errors were encountered: