Skip to content

armgit / memos

Public Imported from GitHub
0

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.

fix: infinite loop in home page (#1773)

Athurg Gooth7e4d71cf58d5
diff --git a/web/src/components/MemoList.tsx b/web/src/components/MemoList.tsx
index a0a90de90..8cf2c90ad 100644
--- a/web/src/components/MemoList.tsx
+++ b/web/src/components/MemoList.tsx
@@ -119,6 +119,7 @@ const MemoList = () => {
}
if (sortedMemos.length < DEFAULT_MEMO_LIMIT) {
handleFetchMoreClick();
+ return;
}
const observer = new IntersectionObserver(([entry]) => {
if (entry.isIntersecting) {