Skip to content

Commit 642ed13

Browse files
committed
Revert "fix: simplify dependency array in VariantMenu useEffect"
This reverts commit 0e11919.
1 parent 65699af commit 642ed13

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])
48+
}, [locationChange.change, locationChange.current, locationChange.previous])
4949

5050
return (
5151
<>

0 commit comments

Comments
 (0)