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
1 changed files with 1 additions and 1 deletions

View File

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