diff options
author | Ansh Nanda <anshnanda10@gmail.com> | 2023-08-28 17:49:14 -0700 |
---|---|---|
committer | Ansh Nanda <anshnanda10@gmail.com> | 2023-08-28 17:49:14 -0700 |
commit | b38629b9b55de71b8e01978c869269b88584834e (patch) | |
tree | 4c8eea8ff26f0440be3628c7bbe58b5c11fd6584 /src/view/com/post-thread/PostThread.tsx | |
parent | b2dd4ea0f5c2913ad1ca71755913855b7ac0a021 (diff) | |
parent | e2f0770b88b24f44d066493e5e39f689feb46915 (diff) | |
download | voidsky-b38629b9b55de71b8e01978c869269b88584834e.tar.zst |
Merge branch 'main' into ansh/app-812-add-custom-feed-discovery-to-onboarding
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index e3dd2cf1d..3e951dbf0 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -1,4 +1,5 @@ import React, {useRef} from 'react' +import {runInAction} from 'mobx' import {observer} from 'mobx-react-lite' import { ActivityIndicator, @@ -361,7 +362,9 @@ function* flattenThread( } } } else if (!isAscending && !post.parent && post.post.replyCount) { - post._hasMore = true + runInAction(() => { + post._hasMore = true + }) } } |