The useQueryClient hook returns the current QueryClient instance.
import { useQueryClient } from '@tanstack/react-query'
const queryClient = useQueryClient({ context })
import { useQueryClient } from '@tanstack/react-query'
const queryClient = useQueryClient({ context })
Options