I have a parent route with a nested child route.
The router-view
in the parent route (that the child loads into) is wrapped in a transition
. My understanding is that this should transition the child in and out when entering/leaving the route.
Neither transition happens by default. Adding an appear
prop to the transition fixes the enter transition, but not the leave.
Is this specific to the fact that it's a nested route? If so, is there a best practice for working around it?
Here is a reduced test case: https://stackblitz.com/edit/vue-y6bbb6?file=src%2Fviews%2FParent.vue – click the 'child' and 'parent' links at the top of the page.