This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-04
Channels
- # aws (3)
- # beginners (63)
- # boot (10)
- # cljs-dev (14)
- # cljsrn (10)
- # clojars (4)
- # clojure (132)
- # clojure-nl (4)
- # clojure-spec (3)
- # clojure-uk (1)
- # clojurescript (206)
- # css (3)
- # datascript (5)
- # lein-figwheel (1)
- # leiningen (1)
- # off-topic (48)
- # re-frame (18)
- # reagent (29)
- # specter (4)
- # untangled (1)
- # yada (1)
@dimovich I've got a feeling this will help you overall: https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md
@mikethompson thanks! having a look.
@andre I don't know if it's only me that does this (and it probably suggests I should be using spec) however every now-and-again (just not often enough that I check for it first) I use assoc
instead of assoc-in
when updating some part of my database and end up with a mapping like [:x :y] value
which breaks Re-Frisk with one strange error or another. I'm not sure what kind of overhead it might add to check for this but it would be useful.
so I’m trying to generate a list of things in a v-box I do something like [v-box :children (mapv (partial vector 'player) players dice)]
in the first example you have a apostrophe 'player
a symbol is not a function, it cannot occupy the first place in a reagent/hiccup vector
in lumo, a function prints like this:
cljs.user=> [identity]
[#object[Function "function (a){return a}"]]
a symbol likes this
cljs.user=> ['identity]
[identity]
is it different on your system?