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

/** Single app-wide React Query client (do not nest additional providers). */
export const queryClient = new QueryClient({
  defaultOptions: {
    queries: {
      retry: 1,
      refetchOnWindowFocus: false,
      staleTime: 30_000,
    },
  },
});
