mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 03:17:56 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
13 lines
338 B
TypeScript
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(),
|
|
},
|
|
},
|
|
});
|