mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-11-30 17:51:14 +00:00
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:
parent
963f41bf13
commit
89b2b1ef98
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user