diff --git a/src/screens/Tabs/Shared/Account.tsx b/src/screens/Tabs/Shared/Account.tsx index c2becf37..21c8c653 100644 --- a/src/screens/Tabs/Shared/Account.tsx +++ b/src/screens/Tabs/Shared/Account.tsx @@ -100,6 +100,7 @@ const TabSharedAccount: React.FC } }, [isFetchingTimeline, fetchedTimeline.current]) + const [segment, setSegment] = useState(0) const ListHeaderComponent = useMemo(() => { return ( <> @@ -114,8 +115,9 @@ const TabSharedAccount: React.FC { + setSegment(nativeEvent.selectedSegmentIndex) switch (nativeEvent.selectedSegmentIndex) { case 0: setQueryKey([ @@ -171,7 +173,7 @@ const TabSharedAccount: React.FC ) : null} ) - }, [data, fetchedTimeline.current, queryKey[1].page, mode]) + }, [segment, data, fetchedTimeline.current, queryKey[1].page, mode]) return ( <>