mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
Improve queryClient options
This commit is contained in:
1 file changed
+9
-1
+9
-1
@@ -13,7 +13,15 @@ const defaultRelays = [
|
|||||||
'wss://ditto.pub/relay',
|
'wss://ditto.pub/relay',
|
||||||
];
|
];
|
||||||
|
|
||||||
const queryClient = new QueryClient();
|
const queryClient = new QueryClient({
|
||||||
|
defaultOptions: {
|
||||||
|
queries: {
|
||||||
|
refetchOnWindowFocus: false,
|
||||||
|
staleTime: 60000, // 1 minute
|
||||||
|
gcTime: Infinity,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
// NOTE: This file should normally not be modified unless you are adding a new provider.
|
// NOTE: This file should normally not be modified unless you are adding a new provider.
|
||||||
// To add new routes, edit the AppRouter.tsx file.
|
// To add new routes, edit the AppRouter.tsx file.
|
||||||
|
|||||||
Reference in new issue
Block a user