From 05f3bef5b906afc45cb5bd7b007ad4ad475b3286 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Wed, 22 Nov 2023 00:00:03 +0530 Subject: [PATCH] Dependency has been added tot he useeffect for tabs to avoid rerendering continuosly (#1682) --- src/Explorer/Tabs/Tabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Explorer/Tabs/Tabs.tsx b/src/Explorer/Tabs/Tabs.tsx index 923b356a2..8dd1d09ec 100644 --- a/src/Explorer/Tabs/Tabs.tsx +++ b/src/Explorer/Tabs/Tabs.tsx @@ -92,7 +92,7 @@ function TabNav({ tab, active, tabKind }: { tab?: Tab; active: boolean; tabKind? if (active && focusTab.current) { focusTab.current.focus(); } - }); + }, [active]); return (
  • setHovering(true)}