This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-26
Channels
- # aleph (5)
- # announcements (9)
- # beginners (115)
- # boot (36)
- # calva (13)
- # cider (4)
- # clara (7)
- # cljs-dev (27)
- # cljsrn (20)
- # clojure (182)
- # clojure-conj (3)
- # clojure-dev (4)
- # clojure-europe (3)
- # clojure-italy (2)
- # clojure-nl (4)
- # clojure-uk (34)
- # clojurebridge (3)
- # clojurescript (19)
- # clojureverse-ops (3)
- # core-typed (1)
- # cursive (12)
- # data-science (3)
- # datomic (16)
- # emacs (9)
- # events (5)
- # figwheel-main (11)
- # fulcro (14)
- # graphql (7)
- # jobs (10)
- # jobs-discuss (6)
- # lein-figwheel (8)
- # leiningen (2)
- # lumo (22)
- # mount (1)
- # nrepl (7)
- # off-topic (69)
- # overtone (17)
- # pathom (3)
- # quil (1)
- # re-frame (5)
- # reagent (23)
- # reitit (6)
- # remote-jobs (1)
- # rewrite-clj (4)
- # ring (38)
- # shadow-cljs (54)
- # sql (9)
- # uncomplicate (5)
- # xtdb (1)
Any way to do styled components with reagent?
@bravilogy https://github.com/reagent-project/reagent/issues/424#issuecomment-464354903
thanks @juhoteperi
@bravilogy I added a new doc file about hooks and other React features: https://github.com/reagent-project/reagent/blob/master/doc/ReactFeatures.md
And another new documentation page about controlled inputs and the workaround Reagent uses: https://github.com/reagent-project/reagent/blob/master/doc/ControlledInputs.md
Docs are incredibly helpful! Thanks for creating those @juhoteperi
Anybody have issues with advanced compiler optimizations enabled? I am getting on error which appears to be from the react_dom render method name being munged. Here is the error: Uncaught TypeError: Cannot read property ‘$cljs$core$IFn$_invoke$arity$3$’ of undefined at $reagent$dom$render_comp$$ Here is the pseudo-names code output: return $reagent$dom$global$0module$0react_dom$$.$render$.$cljs$core$IFn$invoke$arity$3$?$reagent$dom$global$0module$0reactdom$$.$render$.$cljs$core$IFn$invoke$arity$3$($G_8174$$,$container$jscomp$1$$,$G__8176$$)
it looks like you're using shadow-cljs. you have react and react-dom installed via NPM right?
Im sorry for the mundane questions. I am using boot and the boot-cljs plugin. I believe its using clojurscript 1.10.520 which i include as a dependency. I have read briefly on shadow-cljs.. is this a better approach. Again sorry for issues i am getting back into cljs dev after long hiatus
I'm also seeing this problem. I'm also using boot-cljs
Adding :infer-externs true
to the :compiler-options
appeared to fix it, but I'm leery of that solution
Interestingly, it does not appear to happen using lein-cljsbuild
Also, it appears to happen on Java 11 but not Java 8.