Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

window-focus-refetching.md

20 lines384 Bytes

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'