Files
logos-web/apps/web/components/providers.tsx
T

17 lines
516 B
TypeScript

'use client'
import { useState, type ReactNode } from 'react'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
/**
* Client-side providers shared across the app. Currently hosts the react-query
* client used by static forms that call upstream services directly.
*/
export function Providers({ children }: { children: ReactNode }) {
const [queryClient] = useState(() => new QueryClient())
return (
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
)
}