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

Function fetchData

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected