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

Function fetchData

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

Source from the content-addressed store, hash-verified

728 let count = 0
729
730 const fetchData = () => {
731 count++
732 return Promise.resolve('data')
733 }
734 const observer = new QueryObserver(queryClient, {
735 queryKey: key,
736 queryFn: fetchData,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected