deactivating refetchOnWindowFocus globally and fetching songs from /song
This commit is contained in:
+7
-1
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user