This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-05
Channels
- # beginners (229)
- # cider (54)
- # cljs-dev (187)
- # cljsrn (1)
- # clojure (187)
- # clojure-dev (5)
- # clojure-italy (31)
- # clojure-losangeles (1)
- # clojure-russia (3)
- # clojure-spec (76)
- # clojure-uk (29)
- # clojurescript (94)
- # cursive (18)
- # datascript (8)
- # datomic (26)
- # docker (6)
- # emacs (19)
- # figwheel (6)
- # fulcro (41)
- # garden (1)
- # graphql (1)
- # hoplon (33)
- # jobs (1)
- # jobs-discuss (1)
- # lein-figwheel (14)
- # leiningen (7)
- # nrepl (10)
- # nyc (1)
- # off-topic (2)
- # onyx (2)
- # parinfer (25)
- # portkey (6)
- # powderkeg (1)
- # protorepl (1)
- # re-frame (14)
- # reagent (14)
- # shadow-cljs (31)
- # spacemacs (3)
- # test-check (33)
- # uncomplicate (1)
- # unrepl (40)
- # vim (5)
- # yada (16)
Hello all, how to I update the atom value for input in :on-change
in (let [store (reagent/atom {:field_1 "", :field_2 ""})]
:on-change #(swap! store assoc :field_1 (-> % .-target .-value))
-> this is not working, why?
@fabrao I'd guess it isn't a form-2 component ... Take a look at number 3 here https://github.com/reagent-project/reagent/blob/master/docs/FAQ/ComponentNotRerendering.md
@gadfly361 I´m doing exactly what I have not to do 🙂
@lee.justin.m my question was, when processing an array (the output of a form-1 render function) and encountering something that is not a keyword, but a function, how does reagent know that it needs to render an already exiting component, or create a new one (effectively reinitializing it)?
@tacesofoca https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md#060-alpha
I'm trying to make a <use xlink:href="#foo" />
tag in reagent, but having trouble to get the attribute to show up. Any thoughts? currently trying [:use {(keyword "xlink:href") "#foo"}]
@mattboehm i think that’s just a react quirk