import { QueryClient } from "@tanstack/react-query";

export const queryClient = new QueryClient({
	defaultOptions: {
		queries: {
			staleTime: 30_000,
			gcTime: 5 * 60_000,
			retry: 2,
			refetchOnWindowFocus: false,
			refetchOnReconnect: true,
			refetchOnMount: false,
		},
		mutations: {
			retry: 0,
		},
	},
});
