Closed Danielduel closed 9 months ago
Just to underline - I want to merge it into refactor branch
Forgot the reason behind it:
When you stream data you don't stream Elements
, but ReadableStream
:
(the screenshot is from the basic server which uses react, so the wrapped typing is ReactDOMServerReadableStream
)
I believe both of those renderers exist in the scope of the server.
On in the framework-agnostic land I believe you want to narrow the rendered type to
ReadableStream
. This typing would work as a return type for React's SSR, but I think it will be better to use their fancyReactDOMServerReadableStream
type.I think it is ready for merge, running app from
./app
works and I can click the button to increment the counter.