We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14c2be8 commit 528e2f4Copy full SHA for 528e2f4
packages/react-dom/src/server/ReactDOMFizzServerBrowser.js
@@ -67,6 +67,10 @@ function renderToReadableStream(
67
resolve(stream);
68
}
69
function onShellError(error: mixed) {
70
+ // If the shell errors the caller of `renderToReadableStream` won't have access to `allReady`.
71
+ // However, `allReady` will be rejected by `onFatalError` as well.
72
+ // So we need to catch the duplicate, uncatchable fatal error in `allReady` to prevent a `UnhandledPromiseRejection`.
73
+ allReady.catch(() => {});
74
reject(error);
75
76
const request = createRequest(
0 commit comments