1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2020-11-01 18:15:31 +01:00
parent c7a4129b82
commit d1f32524ba
6 changed files with 123 additions and 11 deletions

View File

@ -19,7 +19,6 @@ 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(() => {
@ -28,7 +27,6 @@ const Timeline: React.FC<{
dispatch(fetch({ page, hashtag, list, toot, account }))
setTimelineReady(true)
}
setUpdateStatus(!updateStatus)
return () => {
mounted = false
}