react-with-moxy icon indicating copy to clipboard operation
react-with-moxy copied to clipboard

feat: rendering to a node stream

Open andregoncalvesdev opened this issue 7 years ago • 1 comments

renderInitialBlockand renderRemainingBlock need better naming.

Closes #38

andregoncalvesdev avatar Nov 23 '17 23:11 andregoncalvesdev

One huge disadvantage of using streaming is that we no longer have proper 500 status codes. If react fails during the streaming, we can no longer set the status because the headers were already sent. Additionally, calling res.destroy(err) ends the request but there's no way to distinguish between a "canceled" reply or a normal reply. This is a huge deal unfortunately.

satazor avatar Nov 27 '17 03:11 satazor