don't try to fetch older posts if bottomed out
This commit is contained in:
parent
5b79cff56c
commit
954bbedb2d
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ const timelineFetcher = (timeline, argument, credentials) => {
|
|||
|
||||
const numStatusesBeforeFetch = timeline.statusIds.size
|
||||
|
||||
if (bottomedOut.value) return
|
||||
return fetchTimeline(args)
|
||||
.then(({ data: statuses, pagination, timestamp }) => {
|
||||
if (!older && statuses.length >= 20 && numStatusesBeforeFetch > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue