mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
* chore(scripts/generate-docs): inject 'redirect_from' into flat reference URLs * docs(react-query, solid-query): add 'redirect_from' for URLs broken by the TypeDoc migration
722 B
722 B
| id | title | redirect_from | |
|---|---|---|---|
| useQueryClient | useQueryClient |
|
function useQueryClient(queryClient?): QueryClient;
Defined in: react-query/src/QueryClientProvider.tsx:21
The useQueryClient hook returns the current QueryClient instance.
Parameters
queryClient?
QueryClient
Use this to use a custom QueryClient. Otherwise, the one from the nearest context will
be used.
Returns
QueryClient
The current QueryClient instance.
Throws
If no queryClient argument is passed and no QueryClientProvider is found in the component tree.