This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-11
Channels
- # admin-announcements (10)
- # arachne (2)
- # beginners (74)
- # boot (302)
- # cider (49)
- # cljs-dev (11)
- # cljs-edn (7)
- # cljsjs (13)
- # cljsrn (1)
- # clojure (164)
- # clojure-austin (1)
- # clojure-brasil (3)
- # clojure-finland (2)
- # clojure-greece (4)
- # clojure-russia (48)
- # clojure-uk (11)
- # clojurescript (138)
- # community-development (1)
- # cursive (13)
- # datascript (1)
- # datomic (19)
- # emacs (4)
- # events (1)
- # garden (1)
- # hoplon (123)
- # jobs-discuss (9)
- # keechma (5)
- # lein-figwheel (4)
- # leiningen (2)
- # luminus (15)
- # mount (1)
- # off-topic (8)
- # om (66)
- # on (1)
- # onyx (28)
- # other-languages (2)
- # planck (1)
- # proton (5)
- # re-frame (18)
- # reagent (15)
- # untangled (15)
is there a reason why :key
s for components in dynamic lists can't be given by the child-component renderers ? i.e. why this generates warnings https://www.refheap.com/aa66ef34cb2afbcf619f38243 so this is required to correctly associate :key
s https://www.refheap.com/7db886d73d210b4b9eec99c2e
@mccraigmccraig: looking at the documentation: > The key should always be supplied directly to the components in the array, not to the container HTML child of each component in the array
The two code samples you've provided are similar to the "WRONG" and "Correct" examples in that doc (i think)
(defn an-integer
[n]
^{:key n}
[:li n])
is the same thing as (defn an-integer
[n]
[:li {:key n} n])
ha @rohit i should RTFM more carefully, thanks for doing that for me
@mccraigmccraig: actually i had also experienced this issue and never bothered to figure out the answer. your question finally gave me the impetus to find the answer! so thank you as well.
i'm trying to build a text editor with draft-js and reagent but I'm encountering the classic problem with async re-rendering and text inputs (sometimes missing key strokes / general weirdness). Since draft-js uses contenteditable div's, reagents "ReagentInput" hack won't work. What's the best approach here? Re implement the hack into my own component?
Added keechma profile to reagent-figwheel template: lein new reagent-figwheel myapp +keechma
https://github.com/gadfly361/reagent-figwheel
@nberger @tom Tried to reduce my problem on cljsfiddle, here http://cljsfiddle.com/#gist=8cedbc47948e6b0f3075fe564c5e3dd2
@nberger @tom but there are few errors in the console. dont know why. thanks for any clues
@michael.heuberger: I used reagent.core/create-class
like this and it seems to work http://cljsfiddle.com/#gist=5d9556f0f127a24d9b39e75b2b6f6e5a
ah, it works
then it must be a problem with cljs-react-material-ui itself maybe? @madvas