This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-12
Channels
- # admin-announcements (3)
- # beginners (13)
- # boot (52)
- # cbus (1)
- # cider (13)
- # cljs-dev (70)
- # cljsjs (16)
- # cljsrn (124)
- # clojure (129)
- # clojure-austin (3)
- # clojure-boston (2)
- # clojure-russia (238)
- # clojure-sg (3)
- # clojurescript (119)
- # cursive (18)
- # datomic (22)
- # editors-rus (2)
- # events (1)
- # hoplon (160)
- # jobs (1)
- # jobs-rus (8)
- # ldnclj (31)
- # ldnproclodo (1)
- # lein-figwheel (4)
- # leiningen (8)
- # off-topic (3)
- # om (335)
- # onyx (29)
- # re-frame (15)
- # reagent (12)
- # robots (1)
- # yada (19)
macro i’ve found useful building for reagent: https://gist.github.com/jdubie/c8b62e24f7072078abc3#file-macros-clj-L3-L22
I get Error: No protocol method IAssociative.-assoc defined for type reagent.ratom/RAtom: [object Object]
while doing (swap! app-state update-in [:index :users] clojure.set/union (->> d :users keys (into #{})))
Seems I have to do something like this:
(defn my-component []
(reagent/create-class
:render
(fn [this]
(let [[node (reagent/dom-node this)
[_ x y z] (reagent/argv this)]
...
according to https://github.com/reagent-project/reagent/issues/47#issuecomment-61056999What's the broader goal? (What does getting to the dom-node allow you to do)?
Okay, i gotta go, but I'm guessing this might be helpful to you, even though it isn't a direct answer to your question: http://nils-blum-oeste.net/clojurescripts-reagent-using-props-in-lifecycle-hooks/