fix: update useEffect dependency to location.key so drawer is closed also when re-navigating to current route (#5077)

This commit is contained in:
Giacomo Cerquone 2025-09-08 10:26:18 +02:00 committed by GitHub
parent 3be1b3a1e3
commit 60123de318
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ const NavigationDrawer = observer(() => {
useEffect(() => {
setOpen(false);
}, [location.pathname]);
}, [location.key]);
return (
<Sheet open={open} onOpenChange={setOpen}>