Unverified Commit 60123de3 authored by Giacomo Cerquone's avatar Giacomo Cerquone Committed by GitHub

fix: update useEffect dependency to location.key so drawer is closed also when...

fix: update useEffect dependency to location.key so drawer is closed also when re-navigating to current route (#5077)
parent 3be1b3a1
......@@ -16,7 +16,7 @@ const NavigationDrawer = observer(() => {
useEffect(() => {
setOpen(false);
}, [location.pathname]);
}, [location.key]);
return (
<Sheet open={open} onOpenChange={setOpen}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment