remove misconfigure in react query

This commit is contained in:
2023-12-04 12:17:16 +07:00
parent 21e758ec13
commit b19637bdb7
4 changed files with 14 additions and 5 deletions

View File

@@ -11,10 +11,7 @@ import App from './app';
const queryClient = new QueryClient({
defaultOptions: {
queries: {
gcTime: 1000 * 60 * 60 * 24, // 24 hours
queries: {
retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 10000), // 10 seconds
},
retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 10000), // 10 seconds
},
},
});