We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9471380 commit 1ac7a65Copy full SHA for 1ac7a65
src/App.tsx
@@ -1,8 +1,13 @@
1
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
2
-import { GeneralSettingProvider } from './context/general-setting.context'
3
import { ThemeProvider } from './context/theme.context'
4
import { HomePage } from './pages/home'
5
-const queryClient = new QueryClient()
+const queryClient = new QueryClient({
+ defaultOptions: {
6
+ queries: {
7
+ refetchOnWindowFocus: false,
8
+ },
9
10
+})
11
12
function App() {
13
return (
0 commit comments