Skip to content

Commit 37392ef

Browse files
committed
fix: simplify dependency array in VariantMenu useEffect
1 parent 2447450 commit 37392ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/variant-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
5858
if (locationChange.change && getNav.didVariantChange(locationChange.previous, locationChange.current)) {
5959
setOpen(false)
6060
}
61-
}, [locationChange.change, locationChange.current, locationChange.previous])
61+
}, [locationChange])
6262

6363
return (
6464
<>

0 commit comments

Comments
 (0)