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

Function getFetchOptions

src/createBaseQuery.ts:59–69  ·  view source on GitHub ↗
(variables: any)

Source from the content-addressed store, hash-verified

57 }
58
59 const getFetchOptions = (variables: any) => {
60 return {
61 ...getQueryOptions(defaultOptions.fetcher, variables),
62 queryKeyHashFn: defaultOptions.queryKeyHashFn,
63 getPreviousPageParam: defaultOptions.getPreviousPageParam,
64 getNextPageParam: defaultOptions.getNextPageParam,
65 initialPageParam: defaultOptions.initialPageParam,
66 staleTime: defaultOptions.staleTime,
67 gcTime: defaultOptions.gcTime,
68 }
69 }
70
71 const useBaseHook = (
72 options: QueryBaseHookOptions,

Callers

nothing calls this directly

Calls 1

getQueryOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…