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
First of all, many thanks for react-server! It is really amazing!
My question is: how does react-server achieve stream pre-rendered HTML?
I noticed that react-server uses ReactDOMServer.renderToString rather than renderToNodeStream. It seems for me that it is impossible to get stream pre-rendered HTML(I probably get wrong).
I also noticed that you mentioned "react-server has the concept of a RootElement, by RootElement we can get stream pre-rendered HTML". As far as I know, when you use renderToString and get the html string then make a response to client, the request is already finished. (Or use http 2.0 server push?). So how does stream come?
I am new to SSR, and don't know much details about Big-pipe. Please forgive me if the question is strange.
The text was updated successfully, but these errors were encountered:
First of all, many thanks for react-server! It is really amazing!
My question is: how does react-server achieve stream pre-rendered HTML?
I noticed that react-server uses
ReactDOMServer.renderToString
rather thanrenderToNodeStream
. It seems for me that it is impossible to get stream pre-rendered HTML(I probably get wrong).I also noticed that you mentioned "react-server has the concept of a RootElement, by RootElement we can get stream pre-rendered HTML". As far as I know, when you use
renderToString
and get the html string then make a response to client, the request is already finished. (Or use http 2.0 server push?). So how does stream come?I am new to SSR, and don't know much details about Big-pipe. Please forgive me if the question is strange.
The text was updated successfully, but these errors were encountered: