mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
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(),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|