-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transitioning between components fails when component's root node has v-if="false" #6687
Comments
I don't think we currently have defined how At the very least, the transition should be skipped and the component-b should be rendered. For now, you can work around this by adding a wrapper div: https://jsfiddle.net/Linusborg/by4bfduo/1/ |
But if I wrap a div, the transition won't take effect when data is loaded. |
I'm pretty sure we had an error in the past if you tried to use |
I found a very ugly solution: add an empty |
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.
The text was updated successfully, but these errors were encountered: