Dependency has been added tot he useeffect for tabs to avoid rerendering continuosly (#1682)

This commit is contained in:
MokireddySampath 2023-11-22 00:00:03 +05:30 committed by GitHub
parent 6af1925d15
commit 05f3bef5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ function TabNav({ tab, active, tabKind }: { tab?: Tab; active: boolean; tabKind?
if (active && focusTab.current) { if (active && focusTab.current) {
focusTab.current.focus(); focusTab.current.focus();
} }
}); }, [active]);
return ( return (
<li <li
onMouseOver={() => setHovering(true)} onMouseOver={() => setHovering(true)}