Skip to content

component seems to be destroyed incorrectly #2478

@ksora94

Description

@ksora94

Version

3.0.1

Reproduction link

https://codesandbox.io/s/zx88kqjzj4

Steps to reproduce

  • Enter pageA.
  • Click "pageB" to enter pageB .
  • Click "pageC" to enter pageC from pageB.
  • Click "pageA and pageB", then back to pageB.
  • It's back to pageA, but the URL bar show it's in pageB.

What is expected?

back to pageA correctly

What is actually happening?

I can not back to pageB, and the pageA component seems to be destroyed.


...I'm not sure that the problem is caused by vue-router. Maybe it's caused by keep-alive component.

Activity

added
keep-aliveProblem appearing when using keep-alive
on Dec 28, 2018
added
fixed on 4.xThis issue has been already fixed on the v4 but exists in v3
on Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed on 4.xThis issue has been already fixed on the v4 but exists in v3keep-aliveProblem appearing when using keep-alive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @posva@ksora94

        Issue actions

          component seems to be destroyed incorrectly · Issue #2478 · vuejs/vue-router