Skip to content

Conversation

@feedthejim
Copy link
Contributor

Summary

  • Fixes the createRequest call in renderToPipeableStream to pass debugChannelReadable !== undefined instead of debugChannel !== undefined in the turbopack, esm, and parcel Node.js server implementations
  • The webpack version already had the correct check; this brings the other bundler implementations in line

The bug was introduced in #33754. With debugChannel !== undefined, the server could signal that debug info should be emitted even when only a write-only debug channel is provided (no readable side), potentially causing the client to block forever waiting for debug data that never arrives.

Test plan

  • Existing Flight tests continue to pass
  • Verify the fix matches the webpack implementation at packages/react-server-dom-webpack/src/server/ReactFlightDOMServerNode.js:196

🤖 Generated with Claude Code

The `createRequest` call in `renderToPipeableStream` was passing
`debugChannel !== undefined` instead of `debugChannelReadable !== undefined`
in the turbopack, esm, and parcel server implementations. The webpack
version already had the correct check.

This could cause the server to emit debug info even when only a write-only
debug channel is provided with no readable side, potentially causing the
client to block forever waiting for debug data.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@meta-cla meta-cla bot added the CLA Signed label Feb 8, 2026
@react-sizebot
Copy link

Comparing: 65db100...9c5d311

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 610.35 kB 610.35 kB = 107.89 kB 107.89 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 676.28 kB 676.28 kB = 118.85 kB 118.85 kB
facebook-www/ReactDOM-prod.classic.js = 696.77 kB 696.77 kB = 122.49 kB 122.49 kB
facebook-www/ReactDOM-prod.modern.js = 687.15 kB 687.15 kB = 120.89 kB 120.89 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 9c5d311

@feedthejim feedthejim marked this pull request as draft February 8, 2026 18:34
@unstubbable unstubbable marked this pull request as ready for review February 8, 2026 19:13
@unstubbable unstubbable merged commit 2dd9b7c into facebook:main Feb 8, 2026
243 checks passed
github-actions bot pushed a commit to anatolyshipov/react that referenced this pull request Feb 9, 2026
…eam (facebook#35724)

## Summary

- Fixes the `createRequest` call in `renderToPipeableStream` to pass
`debugChannelReadable !== undefined` instead of `debugChannel !==
undefined` in the turbopack, esm, and parcel Node.js server
implementations
- The webpack version already had the correct check; this brings the
other bundler implementations in line

The bug was introduced in facebook#33754. With `debugChannel !== undefined`, the
server could signal that debug info should be emitted even when only a
write-only debug channel is provided (no readable side), potentially
causing the client to block forever waiting for debug data that never
arrives.

DiffTrain build for [2dd9b7c](facebook@2dd9b7c)
github-actions bot pushed a commit to anatolyshipov/react that referenced this pull request Feb 9, 2026
…eam (facebook#35724)

## Summary

- Fixes the `createRequest` call in `renderToPipeableStream` to pass
`debugChannelReadable !== undefined` instead of `debugChannel !==
undefined` in the turbopack, esm, and parcel Node.js server
implementations
- The webpack version already had the correct check; this brings the
other bundler implementations in line

The bug was introduced in facebook#33754. With `debugChannel !== undefined`, the
server could signal that debug info should be emitted even when only a
write-only debug channel is provided (no readable side), potentially
causing the client to block forever waiting for debug data that never
arrives.

DiffTrain build for [2dd9b7c](facebook@2dd9b7c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants