Skip to content

keep-alive inside a transition out-in reuses the old child route #1242

Open
@sqchenxiyuan

Description

@sqchenxiyuan

Vue.js / vue-router versions

Vue.js 2.2.2
vue-router 2.3.0

Reproduction Link

https://jsfiddle.net/2tdjec9q/

Steps to reproduce

step1: click to /b you will see this is B
step2: click to /c you will see this is C
step3: click to / you will see this is B not this is A

What is Expected?

at step3 i need this is A not this is B

What is actually happening?

at step3 i need this is A

if not use mode="out-in" this will run success

Metadata

Metadata

Assignees

No one assigned

    Labels

    docskeep-aliveProblem appearing when using keep-alive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions