feat: following list page

This commit is contained in:
codytseng 2024-11-11 17:31:14 +08:00
parent 5a091c9ec9
commit 268a160f17
15 changed files with 167 additions and 33 deletions

View file

@ -32,8 +32,6 @@ export default function NoteList({
}, [JSON.stringify(filter)])
useEffect(() => {
if (relayUrls.length === 0) return
setInitialized(false)
setEvents([])
setNewEvents([])
@ -86,7 +84,7 @@ export default function NoteList({
observer.current.unobserve(bottomRef.current)
}
}
}, [until, initialized])
}, [until, initialized, hasMore])
const loadMore = async () => {
const events = await client.fetchEvents(relayUrls, { ...noteFilter, until })