import { QueryClient } from '@tanstack/react-query'

export const queryClient = new QueryClient({
    defaultOptions: {
        queries: {
            staleTime: 5 * 60 * 1000, // 5 minutes
            retry: 2, // Will retry failed queries 2 times before displaying an error
            refetchOnWindowFocus: false, // Disable automatic refetch on window focus
        },
    },
})