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:
@@ -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: {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user