mirror of
https://github.com/usememos/memos.git
synced 2025-11-10 01:10:52 +08: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue