@samitouri / QOS-React-2 / commits / 2dd9b7cf76

[Flight] Fix debug channel flag in Node.js server renderToPipeableStream (#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 #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.

Jimmy Lai committed Feb 8, 2026 at 11:14 UTC 2dd9b7cf76c31df5d7e26e5199e3c362c3e94f95
3 files changed +3 -3
packages/react-server-dom-esm/src/server/ReactFlightDOMServerNode.js
+1 -1
@@ -187,7 +187,7 @@ function renderToPipeableStream(
187 options ? options.startTime : undefined,
188 __DEV__ && options ? options.environmentName : undefined,
189 __DEV__ && options ? options.filterStackFrame : undefined,
190 - debugChannel !== undefined,
190 + debugChannelReadable !== undefined,
191 );
192 let hasStartedFlowing = false;
193 startWork(request);
packages/react-server-dom-parcel/src/server/ReactFlightDOMServerNode.js
+1 -1
@@ -199,7 +199,7 @@ export function renderToPipeableStream(
199 options ? options.startTime : undefined,
200 __DEV__ && options ? options.environmentName : undefined,
201 __DEV__ && options ? options.filterStackFrame : undefined,
202 - debugChannel !== undefined,
202 + debugChannelReadable !== undefined,
203 );
204 let hasStartedFlowing = false;
205 startWork(request);
packages/react-server-dom-turbopack/src/server/ReactFlightDOMServerNode.js
+1 -1
@@ -193,7 +193,7 @@ function renderToPipeableStream(
193 options ? options.startTime : undefined,
194 __DEV__ && options ? options.environmentName : undefined,
195 __DEV__ && options ? options.filterStackFrame : undefined,
196 - debugChannel !== undefined,
196 + debugChannelReadable !== undefined,
197 );
198 let hasStartedFlowing = false;
199 startWork(request);