Open History to see the last commit
The useQueryClient hook returns the current QueryClient instance.
import { useQueryClient } from '@tanstack/react-query'
const queryClient = useQueryClient({ context })
Options
context?: React.Context<QueryClient | undefined>- Use this to use a custom React Query context. Otherwise,
defaultContextwill be used.
- Use this to use a custom React Query context. Otherwise,