diff options
author | Eric Bailey <git@esb.lol> | 2023-08-28 13:55:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 11:55:56 -0700 |
commit | c77fd588e9c6874b1e8eb4f3130b234fc3cbea63 (patch) | |
tree | 58925333bf3d034759441cfdb0019d9917800c40 /src | |
parent | a3cb12f584f6d55a0754fd608fb00d9b7f29e807 (diff) | |
download | voidsky-c77fd588e9c6874b1e8eb4f3130b234fc3cbea63.tar.zst |
wrap mutation in runInAction (#1305)
Diffstat (limited to 'src')
-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 + }) } } |