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
chore: fix memo editor cache
Steven0657a1ef5b52
diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsxindex 03c61738f..22daa44e1 100644--- a/web/src/components/MemoEditor/index.tsx+++ b/web/src/components/MemoEditor/index.tsx@@ -349,6 +349,7 @@ const MemoEditor = (props: Props) => {toast.error(error.details);}+ localStorage.removeItem(contentCacheKey);setState((state) => {return {...state,diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsxindex 5759f4c93..5c059b27f 100644--- a/web/src/pages/MemoDetail.tsx+++ b/web/src/pages/MemoDetail.tsx@@ -66,6 +66,7 @@ const MemoDetail = () => {placeholder: t("editor.add-your-comment-here"),parentMemoName: memo.name,onConfirm: handleCommentCreated,+ cacheKey: `${memo.name}-${memo.updateTime}-comment`,});};