if i were to work on SSR for helix, there are several things that I think that encompasses
Anyone tried helix with React v18?
I built the pyramid site i linked above with an alpha version of it
Awesome, including createRoot?
I should just look
yeah
Awesome, I see it now
there aren't any changes required for helix
just new APIs
with the latest react 18 these are all the things that fall under "SSR" IMO 1. rendering to a string, i.e. basic generation of static content on the JVM a. static hydration support, i.e. ensuring that HTML generated on the server matches and can be hydrated once the client mounts 2. streaming SSR a. data fetching with suspense on the server b. partial hydration in suspense boundaries 3. server-side components
(1) feels pretty tractable, lots of examples of doing that already with e.g. rum and uix
streaming SSR (2) seems pretty complex. it requires a runtime that interoperates with a streaming protocol that I am not sure how to define or build yet
(3) is something I'm waiting until it stabilizes before I try and build something around, but I am thinking about how I could potentially build towards it
taking a cursory look at this today does not look like the the webpack compile functionality would be too difficult to implement with macros https://github.com/facebook/react/tree/main/packages/react-server-dom-webpack but converting components into their server rendered format looks more convoluted.. as it also handles hook, context, streaming etc https://github.com/facebook/react/tree/main/packages/react-server
iām thinking this may give more impetus to using clojurescript via nodejs š
hmm uix looks like it has streaming support for data fetching, i think https://github.com/roman01la/uix/blob/master/core/dev/uix/recipes/server_rendering.clj