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

Function queryFnError

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

Source from the content-addressed store, hash-verified

2339 it('should throw an error if throwOnError option is set to true', async () => {
2340 const key1 = createKey()
2341 const queryFnError = () => Promise.reject<unknown>('error')
2342 try {
2343 await queryClient.query({
2344 queryKey: key1,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected