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

Function onError

examples/preact/ssr-streaming/server.js:76–81  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

74 })
75 },
76 onError(error) {
77 console.error(error)
78 if (!res.headersSent) {
79 res.status(500).end('Internal Server Error')
80 }
81 },
82 })
83
84 // Stop streaming and let the client render the rest if it takes too long

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected