-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
(hmr/keep-alive): After hmr, the page cannot be switched normally #7121
Comments
Are you sure this is reproducible with the latest version of Vue? The reproduction is working fine for me. |
reproduction.mp4Is there a problem with my node version? |
I can reproduce it. It must be to change DemoA with DemoA displayed, then wait for hmr to finish before switching to DemoB. |
It seems to be caused by here:
When hmr is done, the oldInnerChild here is expired. |
@yyx990803 No updates yet? |
Vue version
3.2.45
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-knceak?file=src%2FDemoA.vue,src%2FApp.vue&terminal=dev
Steps to reproduce
When I do not modify any code, the operation is very normal, and the DemoA page and DemoB page can be switched normally. However, if DemoA.vue or DemoB.vue is modified, the page switching will be invalid and there will be no error message. I have tried many versions. All versions have this problem. After deleting keep-alive, it will be normal
What is expected?
DemoA and DemoB can be opened normally after hmr
What is actually happening?
After hmr, the page cannot be switched normally, just like this page does not exist
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: