This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-20
Channels
- # aleph (19)
- # aws-lambda (8)
- # bangalore-clj (1)
- # beginners (13)
- # boot (179)
- # cljs-dev (12)
- # cljsjs (2)
- # cljsrn (6)
- # clojure (174)
- # clojure-italy (14)
- # clojure-nl (2)
- # clojure-russia (172)
- # clojure-spec (29)
- # clojure-uk (22)
- # clojurebridge (10)
- # clojureremote (1)
- # clojurescript (79)
- # cursive (46)
- # data-science (1)
- # datascript (8)
- # datomic (18)
- # defnpodcast (2)
- # emacs (9)
- # events (6)
- # hoplon (11)
- # klipse (13)
- # lein-figwheel (1)
- # leiningen (1)
- # luminus (1)
- # lumo (88)
- # numerical-computing (1)
- # off-topic (24)
- # om (33)
- # onyx (58)
- # protorepl (8)
- # re-frame (10)
- # reagent (26)
- # ring (8)
- # ring-swagger (7)
- # rum (22)
- # spacemacs (25)
- # specter (5)
- # uncomplicate (37)
- # untangled (75)
- # vim (17)
- # yada (3)
It seemed to work for a bit, but then I had #js
in a function, and now it’s saying there’s no reader for that tag.
Any pointers? Would like the initial page render to come from the server. Is it realistic to have identical component trees?
@mruzekw: the #js literal needs to be inside a reader conditional
#?(:clj [] :cljs #js [])
As for identical component trees. It can work but all your components need to be defined in rum. You cannot use any JS react components in server side rendering
@martinklepsch Thanks, I think I almost have it. Now it’s having trouble with js/
namespace
Here is my code ^ I’m having trouble rendering the component tree on both the server and client
I guess I could pull out the application logic to the client side, and pass in an on-submit function to passwordless-login
The whole send-email function, can't it be something like (constantly nil)
on the server side?
Right, I just moved sen-email to strictly client side and am passing in a submit function. I’ll post my new code for reference
I'd love to see your code but I need to run. First thought when you said you "moved the send-email to strictly client side" is, you don't need to do that. You can keep it in the cljc file, and just wrap it in ?(:cljs)
. And then have another version for :clj