mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-02 02:34:42 +08:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user