mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
* docs(solid-query): add JSDoc across the package * docs(solid-query): generate reference docs with TypeDoc * docs(config): register solid-query TypeDoc reference pages * docs(solid-query): correct inaccurate JSDoc statements flagged in review
704 B
704 B
| id | title |
|---|---|
| useQueryClient | useQueryClient |
function useQueryClient(queryClient?): QueryClient;
Defined in: QueryClientProvider.tsx:28
The useQueryClient hook returns the current QueryClient instance.
Parameters
queryClient?
Use this to use a custom QueryClient. Otherwise, the one from the nearest context will
be used.
Returns
The current QueryClient instance.
Throws
If no queryClient argument is passed and no QueryClientProvider is found in the component tree.