// src/app/providers.tsx import { type PropsWithChildren, useState } from 'react' import { QueryClient, QueryClientProvider } from '@tanstack/react-query' export function AppProviders({ children }: PropsWithChildren) { const [client] = useState( () => new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false, retry: 1 } }, }) ) return {children} }