showing results for - "react query stop refetch when i switch browser tabs 28per query 29"
Antonia
17 Feb 2020
1useQuery('todos', fetchTodos, { refetchOnWindowFocus: false })
Noha
13 Aug 2018
1 const queryClient = new QueryClient({
2   defaultOptions: {
3     queries: {
4       refetchOnWindowFocus: false,
5     },
6   },
7 })
8 
9 function App() {
10   return <QueryClientProvider client={queryClient}>...</QueryClientProvider>
11 }