MCPcopy Index your code
hub / github.com/HuolalaTech/react-query-kit / getQueryOptions

Function getQueryOptions

src/createBaseQuery.ts:39–47  ·  view source on GitHub ↗
(fetcherFn: any, variables: any)

Source from the content-addressed store, hash-verified

37 }
38
39 const getQueryOptions = (fetcherFn: any, variables: any) => {
40 return {
41 queryFn:
42 variables && variables === ReactQuery.skipToken
43 ? ReactQuery.skipToken
44 : (context: QueryFunctionContext) => fetcherFn(variables, context),
45 queryKey: getFullKey(defaultOptions.queryKey, variables),
46 }
47 }
48
49 const getKey = (variables?: any) =>
50 getFullKey(defaultOptions.queryKey, variables)

Callers 3

getOptionsFunction · 0.85
getFetchOptionsFunction · 0.85
useBaseHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…