Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

hide footer when lists list is empty (#8337)

authored by

Samuel Newman and committed by
GitHub
d1ec73a2 433fa33b

+18 -2
+9 -1
src/view/com/feeds/ProfileFeedgens.tsx
··· 182 182 }, [enabled, scrollElRef, setScrollViewTag]) 183 183 184 184 const ProfileFeedgensFooter = React.useCallback(() => { 185 + if (isEmpty) return null 185 186 return ( 186 187 <ListFooter 187 188 hasNextPage={hasNextPage} ··· 191 192 height={180 + headerOffset} 192 193 /> 193 194 ) 194 - }, [hasNextPage, error, isFetchingNextPage, headerOffset, fetchNextPage]) 195 + }, [ 196 + hasNextPage, 197 + error, 198 + isFetchingNextPage, 199 + headerOffset, 200 + fetchNextPage, 201 + isEmpty, 202 + ]) 195 203 196 204 return ( 197 205 <View testID={testID} style={style}>
+9 -1
src/view/com/lists/ProfileLists.tsx
··· 178 178 }, [enabled, scrollElRef, setScrollViewTag]) 179 179 180 180 const ProfileListsFooter = React.useCallback(() => { 181 + if (isEmpty) return null 181 182 return ( 182 183 <ListFooter 183 184 hasNextPage={hasNextPage} ··· 187 188 height={180 + headerOffset} 188 189 /> 189 190 ) 190 - }, [hasNextPage, error, isFetchingNextPage, headerOffset, fetchNextPage]) 191 + }, [ 192 + hasNextPage, 193 + error, 194 + isFetchingNextPage, 195 + headerOffset, 196 + fetchNextPage, 197 + isEmpty, 198 + ]) 191 199 192 200 return ( 193 201 <View testID={testID} style={style}>