Open History to see the last commit
function useQueryClient(queryClient?: QueryClient): QueryClient;
Defined in: packages/solid-query/src/QueryClientProvider.tsx:28
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.