fix: 🐛

This commit is contained in:
codytseng
2025-01-13 23:56:41 +08:00
parent c62a82f673
commit 6bc2fde314
5 changed files with 10 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ export default function NoteList({
const options = {
root: null,
rootMargin: '10px',
threshold: 1
threshold: 0.1
}
const observerInstance = new IntersectionObserver((entries) => {
@@ -142,7 +142,7 @@ export default function NoteList({
observerInstance.unobserve(currentBottomRef)
}
}
}, [refreshing, hasMore, events, timelineKey])
}, [refreshing, hasMore, events, timelineKey, bottomRef])
const loadMore = async () => {
if (!timelineKey || refreshing) return