This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-28
Channels
- # announcements (2)
- # aws (21)
- # babashka (4)
- # babashka-sci-dev (17)
- # beginners (3)
- # cider (16)
- # clj-kondo (61)
- # clojure (122)
- # clojure-europe (11)
- # clojure-spec (3)
- # clojurescript (2)
- # conjure (19)
- # helix (9)
- # hyperfiddle (2)
- # inf-clojure (18)
- # lsp (12)
- # off-topic (15)
- # react (2)
- # releases (1)
- # shadow-cljs (40)
- # spacemacs (4)
- # tools-deps (5)
- # vim (15)
How are we supposed to pass along children?
(defnc content-spacing
"Used to space between sub-sections and small groups of content"
[{:keys [children]}]
($ Stack
{:direction :column
:spacing 3}
children))
...
($ content-spacing (d/h1 "A") (d/h1 "B") (d/h1 "C"))
Doing this doesn't seem to "work" and the items don't get the spacing dictated by the container@U3JH98J4R is Stack a javascript library ? If so :column is not being changed to "string" I suppose, so I would pass "column"
@U0516053R That did it. Thank you
I don't want to tease too much, but as of this morning I have a "working" POC of SSR on the JVM that supports streaming, suspense and partial hydration
"working" is in quotes there because I can only generate HTML tags that have :style
and :id
attributes on the server lol
a lot of the work has been reverse engineering the demo from this post https://github.com/reactwg/react-18/discussions/37
short video of the POC. it renders the initial page with "Loading..." messages on the server, and then waits on some I/O (in this case a Thread/sleep
) before streaming the content to replace the loading message with. meanwhile, on the client the whole page is hydrated as soon as the JS loads and makes the counter button interactive while it waits for the rest of the content to be sent by the server