This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-04
Channels
- # atom-editor (2)
- # babashka (39)
- # beginners (123)
- # calva (90)
- # cider (57)
- # clojure (103)
- # clojure-australia (13)
- # clojure-europe (38)
- # clojure-france (3)
- # clojure-italy (13)
- # clojure-nl (7)
- # clojure-norway (2)
- # clojure-seattle (1)
- # clojure-uk (22)
- # clojurescript (28)
- # conjure (20)
- # cursive (2)
- # datascript (1)
- # datomic (20)
- # depstar (23)
- # emacs (1)
- # events (2)
- # graphql (12)
- # honeysql (4)
- # jobs (2)
- # kaocha (2)
- # malli (14)
- # music (2)
- # off-topic (103)
- # pathom (8)
- # polylith (7)
- # quil (3)
- # reagent (7)
- # reitit (2)
- # remote-jobs (1)
- # shadow-cljs (55)
- # slack-help (4)
- # spacemacs (29)
- # xtdb (16)
trying to figure out how to get rid of warning "Cannot infer target type in expression" when i try
:on-change #(emit :page-login-ssn-changed (.-target.value %))
(.-target (.-value %))
or (.. % -target -value)
.-target.value
is not valid cljs, it happens to work by accident, but probably doesn't work with infer code.
Or maybe you need to tag the event object,
(fn [^js/Event e] (.. e -target -value))
Found this: https://github.com/reagent-project/reagent/blob/master/doc/ManagingState.md and it shows the faulty version
However i try to change it
(.. % -target -value)
Works 🙏