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

Function fetchData

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

Source from the content-addressed store, hash-verified

923 let count = 0
924
925 const fetchData = () => {
926 count++
927 return Promise.resolve('data')
928 }
929 const observer = new QueryObserver(queryClient, {
930 queryKey: key,
931 queryFn: fetchData,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected