rsnext/packages/next/export
Gerald Monaco df29561ae3
Use renderToStream with React 18 (#34106)
As per React 18 recommendation, we should use e.g. `renderToReadableStream` whenever we use `createRoot`. This is particularly important for currently supported suspense features like `React.lazy` to work properly during SSR.

However, unless you have opted in to streaming support (via [the `runtime` flag](https://github.com/vercel/next.js/pull/34068)), we will wait until `onCompleteAll` before sending it (via the `generateStaticHTML` flag).

---

Fixes #33879
2022-02-08 19:39:27 +00:00
..
index.ts Use renderToStream with React 18 (#34106) 2022-02-08 19:39:27 +00:00
worker.ts Check stack property for page export exceptions (#32289) 2021-12-16 09:41:45 +01:00