deactivating refetchOnWindowFocus globally and fetching songs from /song

This commit is contained in:
Clément Le Bihan
2023-02-23 23:23:44 +01:00
parent 67a03f196e
commit c00a96a987
2 changed files with 29 additions and 5 deletions
+7 -1
View File
@@ -9,7 +9,13 @@ import { PersistGate } from "redux-persist/integration/react";
import LanguageGate from "./i18n/LanguageGate";
import ThemeProvider, { ColorSchemeProvider } from './Theme';
const queryClient = new QueryClient();
const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
},
},
});
export default function App() {