Subscribe on changes!

(hmr/keep-alive): After hmr, the page cannot be switched normally

avatar
Nov 13th 2022

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

avatar
Nov 14th 2022

Are you sure this is reproducible with the latest version of Vue? The reproduction is working fine for me.

avatar
Nov 14th 2022

Are you sure this is reproducible with the latest version of Vue? The reproduction is working fine for me.

https://user-images.githubusercontent.com/41950121/201557473-5fe1c201-d07c-4d03-ad60-21ca2e0265d0.mp4

Is there a problem with my node version?

avatar
Nov 14th 2022

Are you sure this is reproducible with the latest version of Vue? The reproduction is working fine for me.

I can reproduce it. It must be to change DemoA with DemoA displayed, then wait for hmr to finish before switching to DemoB.

avatar
Nov 14th 2022

Are you sure this is reproducible with the latest version of Vue? The reproduction is working fine for me.

I can reproduce it. It must be to change DemoA with DemoA displayed, then wait for hmr to finish before switching to DemoB.

I can reproduce it too. and transition mode must be out-in

avatar
Nov 14th 2022
avatar
Sep 12th 2023

@yyx990803 No updates yet?