mirror of
https://github.com/logos-co/logos-web.git
synced 2026-08-27 12:11:14 +00:00
17 lines
516 B
TypeScript
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>
|
|
)
|
|
}
|