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
web: isolate archive route cache and clear stale context notes on switch
Mohd Sultan7c6a10870516
diff --git a/apps/web/src/navigation/routes.tsx b/apps/web/src/navigation/routes.tsxindex ffea0659f..0b7dd4d9f 100644--- a/apps/web/src/navigation/routes.tsx+++ b/apps/web/src/navigation/routes.tsx@@ -107,7 +107,7 @@ const routes = defineRoutes({"/archive": () => {useNoteStore.getState().setContext({ type: "archive" });return defineRoute({- key: "notes",+ key: "archive",title: strings.archive(),type: "notes",component: Notesdiff --git a/apps/web/src/stores/note-store.ts b/apps/web/src/stores/note-store.tsindex 6a3a7278e..4c5dcd118 100644--- a/apps/web/src/stores/note-store.ts+++ b/apps/web/src/stores/note-store.ts@@ -58,6 +58,7 @@ class NoteStore extends BaseStore<NoteStore> {};setContext = async (context?: Context) => {+ this.set({ context, contextNotes: undefined });const groupOptions =context?.type === "notebook" ||context?.type === "tag" ||