mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
713 B
713 B
| id | title | ref | replace | ||
|---|---|---|---|---|---|
| window-focus-refetching | Window Focus Refetching | docs/framework/react/guides/window-focus-refetching.md |
|
export const appConfig: ApplicationConfig = {
providers: [
provideTanStackQuery(
new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false, // default: true
},
},
}),
),
],
}
injectQuery(() => ({
queryKey: ['todos'],
queryFn: fetchTodos,
refetchOnWindowFocus: false,
}))