This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-22
Channels
- # alda (1)
- # aws-lambda (23)
- # beginners (27)
- # boot (156)
- # business (2)
- # carry (4)
- # cider (1)
- # cljsjs (2)
- # cljsrn (29)
- # clojure (170)
- # clojure-austin (35)
- # clojure-czech (8)
- # clojure-dusseldorf (5)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-quebec (2)
- # clojure-russia (45)
- # clojure-spec (49)
- # clojure-uk (12)
- # clojurescript (81)
- # component (5)
- # datomic (24)
- # devcards (26)
- # emacs (4)
- # hoplon (4)
- # jobs (1)
- # juxt (5)
- # leiningen (6)
- # luminus (14)
- # mount (26)
- # om (27)
- # om-next (2)
- # onyx (22)
- # pedestal (2)
- # planck (3)
- # proton (5)
- # re-frame (19)
- # reagent (2)
- # ring-swagger (60)
- # spacemacs (12)
- # specter (8)
- # untangled (119)
- # vim (61)
- # yada (36)
Wow. Apple has managed to make Itunes Connect even worse than it was.
I have a RN Switch
component which has a on-value-change
method. How would I pass the value of the Switch in my #(dispatch ...)
function? I have tried #(dispatch [:set-switch [(:id row) (-> % (.-target) (.-value))]
but that gives me a undefined is not an object ... target.value
@mac I believe that :on-value-change
is passed the new value, not something you have to call target or value on. #(dispatch [:set-switch [(:id row) %])
should send the current value as %
@domgetter So simple 🙂 thanks a lot.
(.push (.-navigator props) (.getRoute Router route))
or even (Router/getRoute route)
if it is a class method, not instance one
not sure about (.-navigator props)
too, if you say those are om props now. that might end up as something more clojury, like (:navigator props)
I think you might be able to add it just under the Object
protocol extension, like any other lifecycle method:
Object
(componentDidUpdate [this prev-props prev-state]
...
(my-helper-fn [this that]
...