You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the checkin of #10362, the code to render to a stream now looks like:
import { renderToStream } from 'react-dom/server'
renderToStream(<div>some text</div>).pipe(response);
This is great! I am, however, a little concerned about taking the word "node" out of the mix, because I'm thinking that we may eventually want to render to browser streams, which are a really neat feature that can be used in concert with "service-worker-side rendering". I would propose renaming renderToStream to renderToNodeStream and renderToStaticStream to renderToStaticNodeStream. This would give room for renderToBrowserStream in the future.
If I make a PR on this, would it have a chance of being accepted?