Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 3x | import { QueryClient } from '@tanstack/react-query';
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
// Retries already happen inside the query fn via REQUEST_POLICY. Leaving the
// TanStack default (3) on top of that multiplies a single failing read into
// 12 attempts and keeps `isLoading` true for minutes before any error shows.
retry: false,
},
},
});
|