Unverified Commit 7e4d71cf authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

fix: infinite loop in home page (#1773)

Fix infinite loop in home page
Co-authored-by: 's avatarAthurg Feng <athurg@gooth.org>
parent 97df1a82
...@@ -119,6 +119,7 @@ const MemoList = () => { ...@@ -119,6 +119,7 @@ const MemoList = () => {
} }
if (sortedMemos.length < DEFAULT_MEMO_LIMIT) { if (sortedMemos.length < DEFAULT_MEMO_LIMIT) {
handleFetchMoreClick(); handleFetchMoreClick();
return;
} }
const observer = new IntersectionObserver(([entry]) => { const observer = new IntersectionObserver(([entry]) => {
if (entry.isIntersecting) { if (entry.isIntersecting) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment