Add state updates after screen changes
This commit is contained in:
parent
7f04ac172e
commit
3794eca88e
7 changed files with 171 additions and 52 deletions
|
@ -27,7 +27,9 @@ export const Feed = observer(function Feed({
|
|||
}
|
||||
return (
|
||||
<View>
|
||||
{feed.isLoading && !feed.isRefreshing && <Text>Loading...</Text>}
|
||||
{feed.isLoading && !feed.isRefreshing && !feed.hasContent && (
|
||||
<Text>Loading...</Text>
|
||||
)}
|
||||
{feed.hasError && <Text>{feed.error}</Text>}
|
||||
{feed.hasContent && (
|
||||
<FlatList
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue