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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user