fix(redis): prevent unmount-on-hide lag when switching from command to detail panel

Setting unmountOnHide to false on the Tabs component avoids re-mounting
RedisValueViewer and its heavy async initialisation (API calls + Shiki
highlighting) each time the user switches back from the CLI panel.
This commit is contained in:
t8y2
2026-06-05 12:04:25 +08:00
parent 7283f2b34a
commit 6dadb4ddb7
@@ -831,7 +831,7 @@ defineExpose({ focusSearch });
<!-- Workspace (right) -->
<Pane :size="64" :min-size="36">
<div class="h-full min-w-0 bg-background flex flex-col overflow-hidden">
<Tabs v-model="activeSidePanel" class="h-full min-h-0 gap-0">
<Tabs v-model="activeSidePanel" :unmount-on-hide="false" class="h-full min-h-0 gap-0">
<div class="h-9 shrink-0 border-b bg-background px-3 flex items-center">
<TabsList class="h-7 gap-1 p-0.5">
<TabsTrigger value="detail" class="h-6 flex-none gap-1.5 rounded-md px-2 text-xs">