Skip to content

Commit 2ba7883

Browse files
committed
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 <[email protected]>
1 parent 1d11856 commit 2ba7883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
:mode="defaultTransitionMode">
1818
<Suspense suspensible>
1919
<div
20-
:key="route.path"
20+
:key="route.name ?? route.path"
2121
class="h-100 j-transition">
2222
<component
2323
:is="Component"
24-
:key="route.path" />
24+
:key="route.name ?? route.path" />
2525
</div>
2626
</Suspense>
2727
</JTransition>

0 commit comments

Comments
 (0)