Collection of fixes to list rendering (#127)

* Fix bug that caused endless spinners in profile feeds

* Bundle fetches of suggested actors into one update

* Fixes to suggested follow rendering
This commit is contained in:
Paul Frazee
2023-01-31 17:03:34 -06:00
committed by GitHub
parent 5ccdec1e4f
commit 5d4dea0a5a
3 changed files with 23 additions and 23 deletions
+3 -2
View File
@@ -94,6 +94,7 @@ export const SuggestedFollows = observer(
if (asLinks) {
return (
<Link
key={item.did}
href={`/profile/${item.handle}`}
title={item.displayName || item.handle}>
<User
@@ -107,6 +108,7 @@ export const SuggestedFollows = observer(
}
return (
<User
key={item.did}
item={item}
follow={follows[item.did]}
onPressFollow={onPressFollow}
@@ -141,7 +143,6 @@ export const SuggestedFollows = observer(
</View>
)}
contentContainerStyle={s.contentContainer}
style={s.flex1}
/>
</View>
)}
@@ -221,7 +222,7 @@ const User = ({
const styles = StyleSheet.create({
container: {
flex: 1,
height: '100%',
},
suggestionsContainer: {
+1 -1
View File
@@ -127,7 +127,7 @@ export const Profile = observer(({navIdx, visible, params}: ScreenParams) => {
}
if (!uiState.feed.hasMore) {
items = items.concat([END_ITEM])
} else {
} else if (uiState.feed.isLoading) {
Footer = LoadingMoreFooter
}
renderItem = (item: any) => {