Skip to content

Transitioning between components fails when component's root node has v-if="false" #6687

Closed
@jiangfengming

Description

@jiangfengming

Version

2.4.4

Reproduction link

https://jsfiddle.net/by4bfduo/

Steps to reproduce

Click radio "B".

What is expected?

Should switch to component "B".

What is actually happening?

Doesn't switch to "B".


In real scenario, when a user navigates to a new view, I want to load the remote data (in created hook) and set the root node's v-if to true to switch the component in. But when data hasn't been load for some reason, the dynamic component is stuck and can't go anywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions