feat(app): use route.name as page component key

This way, changing the params of the route doesn't retrigger a complete navigation. The old keying system was there so we could ease the migration to Vue 3,
but the composable essentially handles all the heavy lifting for us

Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
This commit is contained in:
Fernando Fernández 2024-04-16 00:37:20 +02:00
parent 963f41bf13
commit 89b2b1ef98
No known key found for this signature in database
GPG Key ID: 82FD36644F1F4D3B

View File

@ -17,11 +17,11 @@
:mode="defaultTransitionMode">
<Suspense suspensible>
<div
:key="route.path"
:key="route.name ?? route.path"
class="h-100 j-transition">
<component
:is="Component"
:key="route.path" />
:key="route.name ?? route.path" />
</div>
</Suspense>
</JTransition>