mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
395 B
395 B
| id | title |
|---|---|
| useQueryClient | useQueryClient |
The useQueryClient hook returns the current QueryClient instance.
import { useQueryClient } from '@tanstack/react-query'
const queryClient = useQueryClient(queryClient?: QueryClient)
Options
queryClient?: QueryClient,- Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.