This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-27
Channels
- # admin-announcements (3)
- # beginners (26)
- # boot (12)
- # cider (1)
- # cljs-dev (13)
- # cljsjs (101)
- # cljsrn (5)
- # clojure (64)
- # clojure-android (1)
- # clojure-gamedev (1)
- # clojure-greece (23)
- # clojure-nl (9)
- # clojure-poland (2)
- # clojure-russia (3)
- # clojure-spec (11)
- # clojure-uk (159)
- # clojurescript (19)
- # component (1)
- # core-async (2)
- # cursive (2)
- # datascript (1)
- # datomic (2)
- # devcards (1)
- # events (1)
- # funcool (1)
- # hispano (1)
- # hoplon (24)
- # immutant (12)
- # jobs (1)
- # keechma (18)
- # lein-figwheel (2)
- # leiningen (2)
- # off-topic (8)
- # om (23)
- # onyx (4)
- # planck (26)
- # re-frame (149)
- # reagent (6)
- # ring-swagger (9)
- # spacemacs (1)
- # specter (33)
- # spirituality-ethics (11)
- # testing (10)
- # untangled (335)
- # utah-clojurians (3)
- # vim (3)
- # yada (46)
I'm unable to render correctly a table 8x8 in reagent; It says that "Warning: Every element in a seq should have a unique 🔑 ([:tr ([:td "7-0"] [:td "7-1"]..." but in my code I do assign a unique key to everyone: `(defn board [] [:table.board [:tbody (for [i (range 8)] ^{key (str "tr_" (- 7 i))} [:tr (for [j (range 8)] ^{:key (str "td_" i "_" j)} [:td (str (- 7 i) "-" j)])])]])`
try instead of attaching metadata, to pass key as prop
you need a key whenever a sequence is used
so for every for, map etc
specifically your :tr and and :td.
[:tr {:key i} "...."]
enjoy. :thumbsup:
just got this compilation error with 1.9.93 , not present with 1.9.76:
No such var: string/index-of, compiling:(cljs/source_map.clj:260:54)
Ah, just seeing that 93 isn't an actual release as per the Github Readme
@martinklepsch: what version of clojure are you using?
I think @darwin was also experiencing something similar. You may need to use clojure 1.8.0+
@rohit: good catch, project lacked pinning of clojure version 🙂
Neat, Closure docs got a facelift http://google.github.io/closure-library/api/goog.dom.html
@martinklepsch: I find it harder to use this way personally 😞