From 70d56234fd177c230fb34e1bfebd2be1f7bac3a9 Mon Sep 17 00:00:00 2001 From: github-thienna Date: Thu, 5 Jan 2023 16:46:46 +0700 Subject: [PATCH] docs(guides refetchOnWindowFocus): more clear instructions for the use --- docs/react/guides/window-focus-refetching.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/react/guides/window-focus-refetching.md b/docs/react/guides/window-focus-refetching.md index fb59ce999b..66e0b4a9a2 100644 --- a/docs/react/guides/window-focus-refetching.md +++ b/docs/react/guides/window-focus-refetching.md @@ -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 @@ -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 }, }, })