This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-30
Channels
- # announcements (8)
- # babashka (102)
- # beginners (312)
- # calva (9)
- # clj-kondo (9)
- # cljfx (7)
- # clojure (128)
- # clojure-europe (52)
- # clojure-nl (2)
- # clojure-norway (2)
- # clojure-spec (5)
- # clojure-uk (4)
- # clojurescript (13)
- # conjure (5)
- # cursive (5)
- # datalog (18)
- # datomic (8)
- # emacs (1)
- # events (3)
- # fulcro (16)
- # graphql (2)
- # gratitude (1)
- # helix (16)
- # inf-clojure (17)
- # introduce-yourself (9)
- # java (11)
- # lambdaisland (3)
- # leiningen (3)
- # lsp (8)
- # malli (3)
- # membrane (7)
- # missionary (26)
- # nextjournal (1)
- # off-topic (19)
- # pathom (3)
- # polylith (13)
- # portal (16)
- # reagent (39)
- # reitit (2)
- # releases (23)
- # remote-jobs (1)
- # shadow-cljs (40)
- # specter (3)
- # sql (12)
- # tools-deps (8)
- # tree-sitter (1)
- # vim (3)
- # web-security (6)
- # xtdb (16)
if i were to work on SSR for helix, there are several things that I think that encompasses
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
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