Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Feed bugfixes (#2204)

* Dont show both an error and empty message in the feed

* Add a sanity check when attempting to fill the first 30

authored by

Paul Frazee and committed by
GitHub
8245e567 e3ba014b

+15 -4
+7 -1
src/state/queries/notifications/feed.ts
··· 114 114 count += page.items.length 115 115 } 116 116 117 - if (!isFetching && hasNextPage && count < PAGE_SIZE && numEmpties < 3) { 117 + if ( 118 + !isFetching && 119 + hasNextPage && 120 + count < PAGE_SIZE && 121 + numEmpties < 3 && 122 + (data?.pages.length || 0) < 6 123 + ) { 118 124 query.fetchNextPage() 119 125 } 120 126 }, [query])
+7 -1
src/state/queries/post-feed.ts
··· 291 291 } 292 292 } 293 293 294 - if (!isFetching && hasNextPage && count < PAGE_SIZE && numEmpties < 3) { 294 + if ( 295 + !isFetching && 296 + hasNextPage && 297 + count < PAGE_SIZE && 298 + numEmpties < 3 && 299 + (data?.pages.length || 0) < 6 300 + ) { 295 301 query.fetchNextPage() 296 302 } 297 303 }, [query])
+1 -2
src/view/com/posts/Feed.tsx
··· 167 167 if (isFetched) { 168 168 if (isError && isEmpty) { 169 169 arr = arr.concat([ERROR_ITEM]) 170 - } 171 - if (isEmpty) { 170 + } else if (isEmpty) { 172 171 arr = arr.concat([EMPTY_FEED_ITEM]) 173 172 } else if (data) { 174 173 for (const page of data?.pages) {