diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-07-21 19:55:04 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-07-21 19:55:04 -0500 |
commit | cc8a1702043cfbd783f4caa61ab9eb8aeb421072 (patch) | |
tree | 2fff2daed3558d555ee79f34b3c8ba714e40789b /src/view/com/post-thread/PostThread.tsx | |
parent | 29ed3d2ecf1fd6de8af0f25f6d541fe2adaf61f9 (diff) | |
download | voidsky-cc8a1702043cfbd783f4caa61ab9eb8aeb421072.tar.zst |
Add profile view
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 9622ceb49..3623abde4 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -30,7 +30,8 @@ export const PostThread = observer(function PostThread({ newView.setup().catch(err => console.error('Failed to fetch thread', err)) }, [uri, view?.params.uri, store]) - // not yet setup + // loading + // = if ( !view || (view.isLoading && !view.isRefreshing) || @@ -44,6 +45,7 @@ export const PostThread = observer(function PostThread({ } // error + // = if (view.hasError) { return ( <View> @@ -52,7 +54,8 @@ export const PostThread = observer(function PostThread({ ) } - // rendering + // loaded + // = const posts = Array.from(flattenThread(view.thread)) const renderItem = ({item}: {item: PostThreadViewPostModel}) => ( <PostThreadItem item={item} onNavigateContent={onNavigateContent} /> |