MCPcopy Create free account
hub / github.com/brillout/react-streaming / onShellError

Function onShellError

src/server/renderToStream/common.ts:45–54  ·  view source on GitHub ↗
(err: unknown, errorInfo?: ErrorInfo)

Source from the content-addressed store, hash-verified

43 }
44
45 function onShellError(err: unknown, errorInfo?: ErrorInfo) {
46 debugFlow('onShellError()')
47 state.didError = true
48 const errBetter = getErrorWithComponentStack(err, errorInfo)
49 if (state.firstErr === undefined) {
50 state.firstErr = errBetter
51 firstErrOriginal = err
52 }
53 logErr(err, errBetter)
54 }
55 // We intentionally swallow boundary errors, see https://github.com/brillout/react-streaming#error-handling
56 function onBoundaryError(err: unknown, errorInfo?: ErrorInfo) {
57 debugFlow('onBoundaryError()')

Callers

nothing calls this directly

Calls 2

logErrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…