wrap mutation in runInAction (#1305)
parent
a3cb12f584
commit
c77fd588e9
|
@ -1,4 +1,5 @@
|
||||||
import React, {useRef} from 'react'
|
import React, {useRef} from 'react'
|
||||||
|
import {runInAction} from 'mobx'
|
||||||
import {observer} from 'mobx-react-lite'
|
import {observer} from 'mobx-react-lite'
|
||||||
import {
|
import {
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
|
@ -361,7 +362,9 @@ function* flattenThread(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!isAscending && !post.parent && post.post.replyCount) {
|
} else if (!isAscending && !post.parent && post.post.replyCount) {
|
||||||
|
runInAction(() => {
|
||||||
post._hasMore = true
|
post._hasMore = true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue