Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Fix notifications pagination on web (#4400)

* Fix notifications pagination on web

* Preserve larger threshold on native

authored by

Paul Frazee and committed by
GitHub
fef16e06 ac25e43b

+10 -1
+10 -1
src/view/com/notifications/Feed.tsx
··· 25 25 import {CenteredView} from '#/view/com/util/Views' 26 26 import {FeedItem} from './FeedItem' 27 27 import hairlineWidth = StyleSheet.hairlineWidth 28 + import {isWeb} from '#/platform/detection' 28 29 29 30 const EMPTY_FEED_ITEM = {_reactKey: '__empty__'} 30 31 const LOAD_MORE_ERROR_ITEM = {_reactKey: '__load_more_error__'} ··· 182 183 refreshing={isPTRing} 183 184 onRefresh={onRefresh} 184 185 onEndReached={onEndReached} 185 - onEndReachedThreshold={2} 186 + onEndReachedThreshold={ 187 + /* 188 + NOTE: 189 + web's intersection observer struggles with the 2x threshold 190 + and leads to missed pagination, so we keep it <1 191 + -prf 192 + */ 193 + isWeb ? 0.6 : 2 194 + } 186 195 onScrolledDownChange={onScrolledDownChange} 187 196 contentContainerStyle={s.contentContainer} 188 197 // @ts-ignore our .web version only -prf