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
2021-03-14 00:47:55 +01:00
parent 32a7d23dc9
commit 5fe6cd59f9
12 changed files with 141 additions and 144 deletions

View File

@ -194,7 +194,12 @@ const useTimelineQuery = <TData = TimelineData>({
>
}) => {
const queryKey: QueryKeyTimeline = ['Timeline', { ...queryKeyParams }]
return useInfiniteQuery(queryKey, queryFunction, options)
return useInfiniteQuery(queryKey, queryFunction, {
refetchOnMount: false,
refetchOnReconnect: false,
refetchOnWindowFocus: false,
...options
})
}
// --- Separator ---