frandiox / vite-ssr

Use Vite for server side rendering in Node
MIT License
823 stars 91 forks source link

Add support for streaming #193

Open gaearon opened 1 year ago

gaearon commented 1 year ago

React 18 came out a year ago with built-in support for streaming via renderToPipeableStream (Node.js) and renderToReadableStream (Web Streams). Using renderToString does not work with Suspense and is not recommended anymore. It would be great if users of Vite SSR could take advantage of the React streaming APIs.