Skip to content

Commit 92d552f

Browse files
christophechevalierjcabannes
authored andcommitted
fix(catalog-ui): remount page on route change so reused federated instance uses the correct scope
1 parent f6b8fc5 commit 92d552f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

apps/catalog-ui/src/layouts/BaseLayout.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@
7373
</q-header>
7474

7575
<q-page-container>
76-
<router-view />
76+
<router-view v-slot="{ Component, route }">
77+
<component
78+
:is="Component"
79+
:key="(route.meta.instanceId as string | undefined) ?? route.path"
80+
/>
81+
</router-view>
7782
</q-page-container>
7883

7984
<LinidZoneRenderer zone="base-layout.dialogComponent" />

apps/catalog-ui/tests/unit/pages/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)