When using the mode=“out-in” of transition in vue3's router-view, if there are multiple root tags in the component, switching pages after entering the page will result in a white screen
Vue version
3.2.47
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-o2wgpe?file=src/App.vue
Steps to reproduce
- click bug
- click normal
What is expected?
When you click normal, it should show 'this is normal'. Bug now, it show blank page.
What is actually happening?
When you use transition tag's mode="out-in" and in the page use multiple root tags, it will show blank page.
<router-view v-slot="{ Component }">
<transition name="fade" mode="out-in">
<component :is="Component" />
</transition>
</router-view>
I see this warn: Component inside
System Info
No response
Any additional comments?
I don't know this bug is produced in vue or vue-router, if it's vue-router's bug, please tell me. Here are some other cases: https://stackoverflow.com/questions/66411838/vue-3-0-router-components-transition-does-not-work-with-mode-out-in