-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Bug KeepAlive
and Transition
: Changing a child component in KeepAlive
before the component is unmount will cause an error
#6835
Comments
try this ?
|
Thanks, the change does work! I'm just following the usage taught in the documentation: |
Thank you very much. This does work and follows the documentation, I will try to use this in my project to fix the error. But what happens when using |
Maybe I'm wrong, and I'm getting this error with |
This will make keepAlive not work. |
you are right.maybe it is a bug |
Vue version
>= v3.2.27
Link to minimal reproduction
Vue SFC Playground
Steps to reproduce
Comp2
Change Enabled
What is expected?
No errors
What is actually happening?
The first time I encountered this error was in the following code. After switched pages, the actual data in
route.query
would disappear when thebeforeUnmount
lifecycle takes place which caused thev-if
inKeepAlive
to be triggered where it will result in the error "The routing process was interrupted and the page crashed" eventually.I don't have a way to use
vue-router
in Playground, so I chose to reproduce the bug by manually changing the variables when appropriate.System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: