MCPcopy Create free account
hub / github.com/HuolalaTech/react-query-kit / fetcher

Function fetcher

tests/createQuery.test.tsx:17–19  ·  view source on GitHub ↗
(_variables: { id: number })

Source from the content-addressed store, hash-verified

15 const key = uniqueKey()
16 const variables = { id: 1 }
17 const fetcher = (_variables: { id: number }) => {
18 return 'test'
19 }
20 const useGeneratedQuery = createQuery({
21 queryKey: key,
22 fetcher,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected