Skip to content

Commit 0e11919

Browse files
committed
fix: simplify dependency array in VariantMenu useEffect
1 parent 3f1b461 commit 0e11919

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
@@ -45,7 +45,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
4545
if (locationChange.change && getNav.didVariantChange(locationChange.previous, locationChange.current)) {
4646
setOpen(false)
4747
}
48-
}, [locationChange.change, locationChange.current, locationChange.previous])
48+
}, [locationChange])
4949

5050
return (
5151
<>

0 commit comments

Comments
 (0)