useQueryClient

· abundance's blog


The useQueryClient hook returns the current QueryClient instance.

1import { useQueryClient } from '@tanstack/react-query'
2
3const queryClient = useQueryClient(queryClient?: QueryClient)

Options