Skip to content

Commit 16b7d29

Browse files
authored
docs: Update important-defaults.md (TanStack#2413)
1 parent e5ba8bb commit 16b7d29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/pages/guides/important-defaults.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Out of the box, React Query is configured with **aggressive but sane** defaults.
1515
- The network is reconnected.
1616
- The query is optionally configured with a refetch interval.
1717

18+
If you see a refetch that you are not expecting, it is likely because you just focused the window and React Query is doing a `refetchOnWindowFocus`. During development, this will probably be triggered more frequently, especially because focusing between the Browser DevTools and your app will also cause a fetch, so be aware of that.
19+
1820
> To change this functionality, you can use options like `refetchOnMount`, `refetchOnWindowFocus`, `refetchOnReconnect` and `refetchInterval`.
1921
2022
- Query results that have no more active instances of `useQuery`, `useInfiniteQuery` or query observers are labeled as "inactive" and remain in the cache in case they are used again at a later time.

0 commit comments

Comments
 (0)