本页还没有译文
本页 4 段还没译成Tiếng Việt,下面显示的是英文原文。QueryClientProvider
还没翻译译自英文(tanstack.com)本页 4 段都还没译
Use the QueryClientProvider component to connect and provide a QueryClient to your application:
import { QueryClient, QueryClientProvider } from 'react-query'
const queryClient = new QueryClient()
function App() {
return <QueryClientProvider client={queryClient}>...</QueryClientProvider>
}Options
client: QueryClient- Required
- the QueryClient instance to provide
contextSharing: boolean- defaults to
false - Set this to
trueto enable context sharing, which will share the first and at least one instance of the context across the window to ensure that if React Query is used across different bundles or microfrontends they will all use the same instance of context, regardless of module scoping.
- defaults to
AI 翻译查看英文原文