1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Basic actions work, with some bugs

One bug: https://github.com/tootsuite/mastodon/issues/3166

Another bug, still seems `extraData` does not work that well for `FlatList`
This commit is contained in:
Zhiyuan Zheng
2020-11-01 01:57:53 +01:00
parent d2cc643b9c
commit c7a4129b82
7 changed files with 141 additions and 45 deletions

View File

@ -19,6 +19,7 @@ const Timeline: React.FC<{
}> = ({ page, hashtag, list, toot, account, disableRefresh = false }) => {
const dispatch = useDispatch()
const state = useSelector((state: RootState) => state.timelines[page])
const [updateStatus, setUpdateStatus] = useState(false)
const [timelineReady, setTimelineReady] = useState(false)
useEffect(() => {
@ -27,6 +28,7 @@ const Timeline: React.FC<{
dispatch(fetch({ page, hashtag, list, toot, account }))
setTimelineReady(true)
}
setUpdateStatus(!updateStatus)
return () => {
mounted = false
}