The way that ViewerStreams was set up made it hard to mix components that depending on RSC_CHUNK together with those that may instead need RSC_REQUEST and RSC_RESPONSE. The FlightResponse component was sort of dictating a split between them.
It needed to change because I wanted to put "Headers" in the same row as everything else, like the parsed chunks and the network graph.
I ended up changing a few other things as well, like removing a bunch of useMemo (to make the code simpler, and because the compiler is going to help).
The way that
ViewerStreams
was set up made it hard to mix components that depending onRSC_CHUNK
together with those that may instead needRSC_REQUEST
andRSC_RESPONSE
. TheFlightResponse
component was sort of dictating a split between them.It needed to change because I wanted to put "Headers" in the same row as everything else, like the parsed chunks and the network graph.
I ended up changing a few other things as well, like removing a bunch of
useMemo
(to make the code simpler, and because the compiler is going to help).Before
After