nicolium: fix fetching timeline when switching between two timelines of same type
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -31,7 +31,7 @@ const useTimeline = (
|
||||
useEffect(() => {
|
||||
if (!timeline.isPending || timeline.isFetching) return;
|
||||
fetchInitial();
|
||||
}, []);
|
||||
}, [timelineId]);
|
||||
|
||||
const fetchInitial = useCallback(async () => {
|
||||
timelineActions.setLoading(timelineId, true);
|
||||
|
||||
Reference in New Issue
Block a user