How to use emotion with renderToPipeableStream
Author: 0Lucifer0Created Jun 28, 2022Updated Mar 8, 2026
Labelsfeature request
I'm looking at how to implement SSR emotion with react 18. React18 made renderToPipeableStream method the new recommended way and deprecated the renderToNodeStream method.
The documentation only seems to deal with the now deprecated renderToNodeStream and I can't figure out how to make it works with the pipeable stream.
cf: https://reactjs.org/docs/react-dom-server.html#rendertonodestream https://emotion.sh/docs/ssr#renderstylestonodestream
Documentation links: https://emotion.sh/docs/ssr
Source: emotion-js/emotion