about summary refs log tree commit diff
path: root/src/view/com/posts/Feed.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-28 17:02:55 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-28 17:02:55 -0500
commitcb5a575bc85faa8ea6a8ecd556972f8cf06d8bb7 (patch)
tree4d1b627d4ddbf83c6592d2c910f0b8e469470f59 /src/view/com/posts/Feed.tsx
parentb4ad0cff4bbf77448b7bb49e1421ef2ab3271b66 (diff)
downloadvoidsky-cb5a575bc85faa8ea6a8ecd556972f8cf06d8bb7.tar.zst
Fix feed pagination on user profiles
Diffstat (limited to 'src/view/com/posts/Feed.tsx')
-rw-r--r--src/view/com/posts/Feed.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/view/com/posts/Feed.tsx b/src/view/com/posts/Feed.tsx
index 8c14b0810..037d71a13 100644
--- a/src/view/com/posts/Feed.tsx
+++ b/src/view/com/posts/Feed.tsx
@@ -3,11 +3,8 @@ import {observer} from 'mobx-react-lite'
 import {Text, View, FlatList} from 'react-native'
 import {FeedViewModel, FeedViewItemModel} from '../../../state/models/feed-view'
 import {FeedItem} from './FeedItem'
-import {useStores} from '../../../state'
 
 export const Feed = observer(function Feed({feed}: {feed: FeedViewModel}) {
-  const store = useStores()
-
   // TODO optimize renderItem or FeedItem, we're getting this notice from RN: -prf
   //   VirtualizedList: You have a large list that is slow to update - make sure your
   //   renderItem function renders components that follow React performance best practices
@@ -26,7 +23,7 @@ export const Feed = observer(function Feed({feed}: {feed: FeedViewModel}) {
       {feed.isLoading && !feed.isRefreshing && !feed.hasContent && (
         <Text>Loading...</Text>
       )}
-      {feed.hasError && <Text>{feed.errorStr}</Text>}
+      {feed.hasError && <Text>{feed.error}</Text>}
       {feed.hasContent && (
         <FlatList
           data={feed.feed.slice()}