Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ useQueryClient
Function
useQueryClient
packages/svelte-query/src/useQueryClient.ts:24–27 ·
view source on GitHub ↗
(queryClient?: QueryClient)
Source
from the content-addressed store, hash-verified
22
* ```
23
*/
24
export
function
useQueryClient(queryClient?: QueryClient): QueryClient {
25
if
(queryClient)
return
queryClient
26
return
getQueryClientContext()
27
}
Callers
7
createBaseQuery
Function · 0.70
useHydrate
Function · 0.70
useMutationState
Function · 0.70
useIsFetching
Function · 0.70
useIsMutating
Function · 0.70
createQueries
Function · 0.70
createMutation
Function · 0.70
Calls
1
getQueryClientContext
Function · 0.85
Tested by
no test coverage detected