Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/react/guides/window-focus-refetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id: window-focus-refetching
title: Window Focus Refetching
---

If a user leaves your application and returns to stale data, **TanStack Query automatically requests fresh data for you in the background**. You can disable this globally or per-query using the `refetchOnWindowFocus` option:
If a user leaves your application and returns and the query data is stale, **TanStack Query automatically requests fresh data for you in the background**. You can disable this globally or per-query using the `refetchOnWindowFocus` option:

#### Disabling Globally

Expand All @@ -14,7 +14,7 @@ If a user leaves your application and returns to stale data, **TanStack Query au
const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
refetchOnWindowFocus: false, // default: true
},
},
})
Expand Down