Files
pterodactyl-panel/resources/scripts/api/queryClient.ts
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

13 lines
338 B
TypeScript

import { QueryClient } from '@tanstack/react-query';
import { retryUnlessClientError } from '@/api/queryRetry';
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 30_000,
refetchOnWindowFocus: false,
retry: retryUnlessClientError(),
},
},
});