From 32b7bc3386810e665f5f35f58ad54d6cabf443b3 Mon Sep 17 00:00:00 2001 From: 777genius Date: Fri, 29 May 2026 15:37:12 +0300 Subject: [PATCH] perf: unmount hidden team list tab --- src/renderer/components/layout/PaneContent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/layout/PaneContent.tsx b/src/renderer/components/layout/PaneContent.tsx index 4ab940d5..aa077f90 100644 --- a/src/renderer/components/layout/PaneContent.tsx +++ b/src/renderer/components/layout/PaneContent.tsx @@ -86,6 +86,7 @@ const PaneLazyFallback = (): React.JSX.Element => { const PaneTabSlot = ({ tab, isActive, isPaneFocused }: PaneTabSlotProps): React.JSX.Element => { const [hasActivated, setHasActivated] = useState(isActive); + const shouldRenderContent = hasActivated && (tab.type !== 'teams' || isActive); useEffect(() => { if (isActive) { @@ -95,7 +96,7 @@ const PaneTabSlot = ({ tab, isActive, isPaneFocused }: PaneTabSlotProps): React. return (
- {hasActivated && ( + {shouldRenderContent && ( }> {tab.type === 'dashboard' && } {tab.type === 'notifications' && }