Skip to content

After using KeepAlive to switch routes, there is an error when referencing the component instance. #13749

@yinfoyuan

Description

@yinfoyuan

Vue version

3.5.18

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-d8g9pttj?file=src%2FApp.vue

Steps to reproduce

Change the route

What is expected?

No error occurred.

What is actually happening?

The variable has been overwritten.

System Info

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