Framework
Version
Community Resources

useQueryClient

The useQueryClient hook returns the current QueryClient instance.

js
import { useQueryClient } from 'react-query'

const queryClient = useQueryClient()
import { useQueryClient } from 'react-query'

const queryClient = useQueryClient()