mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-01 20:44:06 +01:00
Fix dropdown refresh after Git init
This commit is contained in:
1 parent
6e25c26e9f
commit
c300e8cbd5
5 files changed
+43
-28
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import {QueryCache, QueryClient} from "@tanstack/react-query";
|
||||
|
||||
export const queryClient = new QueryClient({
|
||||
queryCache: new QueryCache({
|
||||
onError: (err, query) => {
|
||||
console.log('Query client error', { err, query });
|
||||
},
|
||||
}),
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
retry: false,
|
||||
networkMode: 'always',
|
||||
refetchOnWindowFocus: true,
|
||||
refetchOnReconnect: false,
|
||||
refetchOnMount: false, // Don't refetch when a hook mounts
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user