Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: update useEffect dependency to location.key so drawer is closed also when re-navigating to current route (#5077)
Giacomo Cerquone60123de31838
diff --git a/web/src/components/NavigationDrawer.tsx b/web/src/components/NavigationDrawer.tsxindex 0cee7e329..f18d7b710 100644--- a/web/src/components/NavigationDrawer.tsx+++ b/web/src/components/NavigationDrawer.tsx@@ -16,7 +16,7 @@ const NavigationDrawer = observer(() => {useEffect(() => {setOpen(false);- }, [location.pathname]);+ }, [location.key]);return (<Sheet open={open} onOpenChange={setOpen}>