We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ea744 commit 96f77b1Copy full SHA for 96f77b1
src/apps/review/src/lib/components/NavTabs/NavTabs.tsx
@@ -4,6 +4,7 @@ import {
4
SetStateAction,
5
useCallback,
6
useContext,
7
+ useEffect,
8
useMemo,
9
useRef,
10
useState,
@@ -39,6 +40,10 @@ const NavTabs: FC = () => {
39
40
Dispatch<SetStateAction<string>>
41
] = useState<string>(activeTabPathName)
42
43
+ useEffect(() => {
44
+ setActiveTab(activeTabPathName)
45
+ }, [activeTabPathName])
46
+
47
const handleTabChange = useCallback(
48
(tabId: string) => {
49
setActiveTab(tabId)
0 commit comments