Address review feedback

parent d37b6cdf
...@@ -551,8 +551,9 @@ export function renderToNodeFlightStream( ...@@ -551,8 +551,9 @@ export function renderToNodeFlightStream(
// `renderToPipeableStream` has no `signal` option (unlike the Web // `renderToPipeableStream` has no `signal` option (unlike the Web
// `renderToReadableStream`), so pull `signal` out of the options and abort // `renderToReadableStream`), so pull `signal` out of the options and abort
// the returned pipeable ourselves when it fires. The listener is removed once // the returned pipeable ourselves when it fires. We drop the listener when
// the passthrough closes. // the passthrough closes so a finished render's `pipeable` isn't retained by
// the request signal, which can outlive it.
const { signal, ...renderOptions } = opts ?? {} const { signal, ...renderOptions } = opts ?? {}
const pt = new PassThrough() const pt = new PassThrough()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment