Skip to content

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

@zhulh-dev

Description

@zhulh-dev

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions