MCPcopy
hub / github.com/facebook/react / closeWithError

Function closeWithError

packages/react-server/src/ReactServerStreamConfigFB.js:71–75  ·  view source on GitHub ↗
(destination: Destination, error: mixed)

Source from the content-addressed store, hash-verified

69}
70
71export function closeWithError(destination: Destination, error: mixed): void {
72 destination.done = true;
73 destination.fatal = true;
74 destination.error = error;
75}
76
77export {createFastHashJS as createFastHash} from './createFastHashJS';
78

Callers 5

fatalErrorFunction · 0.90
startFlowingFunction · 0.90
fatalErrorFunction · 0.90
startFlowingFunction · 0.90
startFlowingDebugFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected