This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-01
Channels
- # aleph (1)
- # architecture (7)
- # aws (1)
- # beginners (52)
- # boot (3)
- # cider (27)
- # cljs-dev (9)
- # cljsrn (16)
- # clojure (82)
- # clojure-dev (75)
- # clojure-italy (14)
- # clojure-nl (11)
- # clojure-spec (10)
- # clojure-uk (31)
- # clojurescript (49)
- # core-async (13)
- # datascript (11)
- # datomic (15)
- # duct (11)
- # emacs (8)
- # fulcro (46)
- # heroku (2)
- # jobs-discuss (27)
- # jobs_rus (1)
- # juxt (25)
- # keechma (1)
- # off-topic (59)
- # om (2)
- # pedestal (4)
- # portkey (113)
- # portland-or (1)
- # re-frame (14)
- # reagent (11)
- # shadow-cljs (278)
- # vim (2)
- # yada (2)
Could someone take a look at these :class
changes which fix some problems introduced with 0.8 :class
collection support: https://github.com/reagent-project/reagent/pull/368
The potentially breaking part is that name
is called for every :class
value, which will fail for some types (like boolean or numbers).
just my two cents, but I didn’t even know we could use keywords as class names, and I would prefer to have collection support over keyword -> string support
Keywords (and symbols) have worked always, collection change broke it in one case (when used together with element name shorthand)
I'm trying to update to reagent 0.8.0, but I'm seeing an error of "Uncaught Error: js/React is missing" when calling reagent.core/dom-node. Anyone have any pointers what might cause this? If I type "React" in the js console, there is an object there.
Ok, totally deleting cljs output dir and recompiling seems to have addressed that issue. I think.
Now that reagent depends on react 16 by default, is there a way we can hook into the lifecycle method: getSnapshotBeforeUpdate ?
It actually seems to work, with some scary warnings that it won't be calling the unsafe lifecycle methods that it claims reagent still uses.