mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
* docs(preact-query): wrap bare 'QueryClient' type name in backticks in JSDoc * docs(preact-query): backtick 'QueryClient' in 'children' prop doc and 'suspense'/'throwOnError' in QueryErrorResetBoundary
664 B
664 B
| id | title |
|---|---|
| useQueryClient | useQueryClient |
function useQueryClient(queryClient?): QueryClient;
Defined in: preact-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.