MCPcopy
hub / github.com/react/react / createCancelHandler

Function createCancelHandler

packages/react-dom/src/server/ReactDOMFizzServerNode.js:53–59  ·  view source on GitHub ↗
(request: Request, reason: string)

Source from the content-addressed store, hash-verified

51}
52
53function createCancelHandler(request: Request, reason: string) {
54 return () => {
55 stopFlowing(request);
56 // eslint-disable-next-line react-internal/prod-error-codes
57 abort(request, new Error(reason));
58 };
59}
60
61type NonceOption =
62 | string

Callers 1

pipeFunction · 0.70

Calls 2

stopFlowingFunction · 0.90
abortFunction · 0.90

Tested by

no test coverage detected