mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
* docs(query-core/utils): add missing JSDoc to utility functions * docs(query-core/utils): clarify that 'addToEnd' and 'addToStart' drop at most one item * docs(framework/*/reference): regenerate reference docs
747 B
747 B
| id | title |
|---|---|
| useQueryClient | useQueryClient |
function useQueryClient(queryClient?: QueryClient): QueryClient;
Defined in: packages/solid-query/src/QueryClientProvider.tsx:27
The useQueryClient primitive 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.