You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/react/reference/useInfiniteQuery.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,4 +68,6 @@ The returned properties for `useInfiniteQuery` are identical to the [`useQuery`
68
68
- This will be `true` if there is a previous page to be fetched (known via the `getPreviousPageParam` option).
69
69
-`isRefetching: boolean`
70
70
- Is `true` whenever a background refetch is in-flight, which _does not_ include initial `loading` or fetching of next or previous page
71
-
- Is the same as `isFetching && !isLoading && !isFetchingNextPage && !isFetchingPreviousPage`
71
+
- Is the same as `isFetching && !isLoading && !isFetchingNextPage && !isFetchingPreviousPage`
72
+
73
+
Keep in mind that imperative fetch calls, such as `fetchNextPage`, may interfere with the default refetch behaviour, resulting in outdated data. Make sure to call these functions only in response to user actions, or add conditions like `hasNextPage && !isFetching`.
0 commit comments