MCPcopy Create free account
hub / github.com/TanStack/query / fetchData

Function fetchData

packages/query-core/src/__tests__/queryObserver.test.tsx:900–903  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

898 let count = 0
899
900 const fetchData = () => {
901 count++
902 return Promise.resolve('data')
903 }
904 const observer = new QueryObserver(queryClient, {
905 queryKey: key,
906 queryFn: fetchData,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected