A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: toggle selection mode to false on navigate
thecodrr7b2b1fc20f8a
diff --git a/apps/web/src/utils/use-routes.js b/apps/web/src/utils/use-routes.jsindex ea43e8a32..e4d4b8f27 100644--- a/apps/web/src/utils/use-routes.js+++ b/apps/web/src/utils/use-routes.js@@ -1,11 +1,15 @@import { useLocation } from "wouter";import makeMatcher from "wouter/matcher";import { navigate } from "../navigation";+import { store as selectionStore } from "../stores/selection-store";export default function useRoutes(routes, options) {const [location] = useLocation();const matcher = makeMatcher();+ // TODO move this to an extension function+ selectionStore.toggleSelectionMode(false);+for (var key in routes) {const [match, params] = matcher(key, location);if (match) {