feat: following list page
This commit is contained in:
parent
5a091c9ec9
commit
268a160f17
15 changed files with 167 additions and 33 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue