Open History to see the last commit
1---
2id: window-focus-refetching
3title: Window Focus Refetching
4ref: docs/framework/react/guides/window-focus-refetching.md
5replace: { '@tanstack/react-query': '@tanstack/solid-query' }
6---
7β
8[//]: # 'Example2'
9β
10```tsx
11useQuery(() => ({
12 queryKey: ['todos'],
13 queryFn: fetchTodos,
14 refetchOnWindowFocus: false,
15}))
16```
17β
18[//]: # 'Example2'
19[//]: # 'ReactNative'
20[//]: # 'ReactNative'