QueryClientProvider

· abundance's blog


Use the QueryClientProvider component to connect and provide a QueryClient to your application:

1import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
2
3const queryClient = new QueryClient()
4
5function App() {
6  return <QueryClientProvider client={queryClient}>...</QueryClientProvider>
7}

Options