mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: infinite loop in home page (#1773)
Fix infinite loop in home page Co-authored-by: Athurg Feng <athurg@gooth.org>
This commit is contained in:
@ -119,6 +119,7 @@ const MemoList = () => {
|
||||
}
|
||||
if (sortedMemos.length < DEFAULT_MEMO_LIMIT) {
|
||||
handleFetchMoreClick();
|
||||
return;
|
||||
}
|
||||
const observer = new IntersectionObserver(([entry]) => {
|
||||
if (entry.isIntersecting) {
|
||||
|
Reference in New Issue
Block a user