Closed TheTrigger closed 1 year ago
3.6.5
github.com
Expecting to see the User Dashboard page
The main router-view shows the latest sub-routing: User Edit.
The relevant thing I tried is to put the attribute :key to the main router-view
:key
<router-view :key="`app_${$route.fullPath}}`"></router-view>
alto tried to combine with
<router-view :key="`user_${$route.fullPath}}`"></router-view>
but by doing this you mysteriously lose the animation on the child routing-view maybe because the parent-routing-view is being reloaded.
If you remove the node <transition> or <keep-alive> it start to work as expected.
<transition>
<keep-alive>
I tried many things but haven't found a way to make it work with transition, keep-alive and nested routing
thanks
Hi, thanks for your interest but Github issues are for boiled down bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.
Version
3.6.5
Reproduction link
github.com
Steps to reproduce
What is expected?
Expecting to see the User Dashboard page
What is actually happening?
The main router-view shows the latest sub-routing: User Edit.
The relevant thing I tried is to put the attribute
:key
to the main router-viewalto tried to combine with
but by doing this you mysteriously lose the animation on the child routing-view maybe because the parent-routing-view is being reloaded.
If you remove the node
<transition>
or<keep-alive>
it start to work as expected.I tried many things but haven't found a way to make it work with transition, keep-alive and nested routing
thanks