Bug: Suspense
components rendered by renderToReadableStream()
cause render abort when served with Bun
#32159
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version:
19.0.0
Steps To Reproduce
bun install
bun run ssr:node
. Open the app and see that the suspended Button component resolves after 2 seconds and no errors are thrown in the serverside or clientside consoles.bun run ssr:bun
. Open the app and see that the Button component remains suspended after 2 seconds, is resolved in the serverside console but not the clientside console, and the following error is thrown in the server console:Link to code example: https://github.com/jmuzina/react-repro
The current behavior
react-dom.renderToPipeableStream()
.react-dom.renderToReadableStream()
, but any Suspense boundaries are not resolved until after a re-render, and the first render of a Suspense boundary is aborted on the serverside with no reason.The expected behavior
Node and Bun can both stream responses compatible with React.Suspense.
The text was updated successfully, but these errors were encountered: