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(web): refresh memo detail cache after editor save
Steven333c9df23324
diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsxindex 2074f90ac..fb75dfe07 100644--- a/web/src/components/MemoEditor/index.tsx+++ b/web/src/components/MemoEditor/index.tsx@@ -87,6 +87,11 @@ const MemoEditorImpl: React.FC<MemoEditorProps> = ({queryClient.invalidateQueries({ queryKey: userKeys.stats() }),];+ // Ensure memo detail pages don't keep stale cached content after edits.+ if (memoName) {+ invalidationPromises.push(queryClient.invalidateQueries({ queryKey: memoKeys.detail(memoName) }));+ }+// If this was a comment, also invalidate the comments query for the parent memoif (parentMemoName) {invalidationPromises.push(queryClient.invalidateQueries({ queryKey: memoKeys.comments(parentMemoName) }));