mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 00:51:30 +03: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:
parent
97df1a82c7
commit
7e4d71cf58
@ -119,6 +119,7 @@ const MemoList = () => {
|
||||
}
|
||||
if (sortedMemos.length < DEFAULT_MEMO_LIMIT) {
|
||||
handleFetchMoreClick();
|
||||
return;
|
||||
}
|
||||
const observer = new IntersectionObserver(([entry]) => {
|
||||
if (entry.isIntersecting) {
|
||||
|
Loading…
Reference in New Issue
Block a user