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
1 changed files with 1 additions and 1 deletions

View File

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