diff --git a/packages/react-dom/src/server/ReactDOMFizzServerBrowser.js b/packages/react-dom/src/server/ReactDOMFizzServerBrowser.js index 245122071e103..48b3df777ee99 100644 --- a/packages/react-dom/src/server/ReactDOMFizzServerBrowser.js +++ b/packages/react-dom/src/server/ReactDOMFizzServerBrowser.js @@ -80,7 +80,7 @@ function renderToReadableStream( }, cancel: (reason): ?Promise => { stopFlowing(request); - abort(request); + abort(request, reason); }, }, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams. @@ -161,7 +161,7 @@ function resume( }, cancel: (reason): ?Promise => { stopFlowing(request); - abort(request); + abort(request, reason); }, }, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams. diff --git a/packages/react-dom/src/server/ReactDOMFizzServerBun.js b/packages/react-dom/src/server/ReactDOMFizzServerBun.js index 9bcd19fb748a5..c9271d3444344 100644 --- a/packages/react-dom/src/server/ReactDOMFizzServerBun.js +++ b/packages/react-dom/src/server/ReactDOMFizzServerBun.js @@ -70,7 +70,7 @@ function renderToReadableStream( }, cancel: (reason): ?Promise => { stopFlowing(request); - abort(request); + abort(request, reason); }, }, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams. diff --git a/packages/react-dom/src/server/ReactDOMFizzServerEdge.js b/packages/react-dom/src/server/ReactDOMFizzServerEdge.js index 245122071e103..48b3df777ee99 100644 --- a/packages/react-dom/src/server/ReactDOMFizzServerEdge.js +++ b/packages/react-dom/src/server/ReactDOMFizzServerEdge.js @@ -80,7 +80,7 @@ function renderToReadableStream( }, cancel: (reason): ?Promise => { stopFlowing(request); - abort(request); + abort(request, reason); }, }, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams. @@ -161,7 +161,7 @@ function resume( }, cancel: (reason): ?Promise => { stopFlowing(request); - abort(request); + abort(request, reason); }, }, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams. diff --git a/packages/react-dom/src/server/ReactDOMFizzStaticBrowser.js b/packages/react-dom/src/server/ReactDOMFizzStaticBrowser.js index 94e7c32d22b8e..b3db085738b2c 100644 --- a/packages/react-dom/src/server/ReactDOMFizzStaticBrowser.js +++ b/packages/react-dom/src/server/ReactDOMFizzStaticBrowser.js @@ -64,7 +64,7 @@ function prerender( }, cancel: (reason): ?Promise => { stopFlowing(request); - abort(request); + abort(request, reason); }, }, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams. diff --git a/packages/react-dom/src/server/ReactDOMFizzStaticEdge.js b/packages/react-dom/src/server/ReactDOMFizzStaticEdge.js index 94e7c32d22b8e..b3db085738b2c 100644 --- a/packages/react-dom/src/server/ReactDOMFizzStaticEdge.js +++ b/packages/react-dom/src/server/ReactDOMFizzStaticEdge.js @@ -64,7 +64,7 @@ function prerender( }, cancel: (reason): ?Promise => { stopFlowing(request); - abort(request); + abort(request, reason); }, }, // $FlowFixMe[prop-missing] size() methods are not allowed on byte streams.