Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ useQuery
Function
useQuery
packages/react-query/src/useQuery.ts:45–47 ·
view source on GitHub ↗
(options: UseQueryOptions, queryClient?: QueryClient)
Source
from the content-addressed store, hash-verified
43
): UseQueryResult<NoInfer<TData>, TError>
44
45
export
function
useQuery(options: UseQueryOptions, queryClient?: QueryClient) {
46
return
useBaseQuery(options, QueryObserver, queryClient)
47
}
Callers
15
Example1
Function · 0.90
Example1
Function · 0.90
WithObjectPattern
Function · 0.90
WithObjectPatternAndRename
Function · 0.90
WithObjectPatternAndRestElement
Function · 0.90
WithIdentifier
Function · 0.90
useSomethingElse
Function · 0.90
useAnotherThing
Function · 0.90
WithCombinations
Function · 0.90
WithObjectPattern
Function · 0.90
WithObjectPatternAndRename
Function · 0.90
WithObjectPatternAndRestElement
Function · 0.90
Calls
1
useBaseQuery
Function · 0.90
Tested by
15
useWrappedQuery
Function · 0.72
useWrappedFuncStyleQuery
Function · 0.72
useCustomQuery
Function · 0.72
Test
Function · 0.72
Page
Function · 0.72
Page
Function · 0.40
Page
Function · 0.40
Page1
Function · 0.40
Page2
Function · 0.40
Test
Function · 0.40
Page
Function · 0.40
Query
Function · 0.40