Add state updates after screen changes

This commit is contained in:
Paul Frazee 2022-07-25 14:21:48 -05:00
parent 7f04ac172e
commit 3794eca88e
7 changed files with 171 additions and 52 deletions

View file

@ -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