This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-02
Channels
- # aleph (5)
- # beginners (112)
- # boot (137)
- # cider (10)
- # cljs-dev (36)
- # cljsrn (2)
- # clojure (118)
- # clojure-argentina (1)
- # clojure-berlin (1)
- # clojure-brasil (3)
- # clojure-dev (4)
- # clojure-italy (2)
- # clojure-nl (13)
- # clojure-russia (23)
- # clojure-spec (5)
- # clojure-uk (53)
- # clojurescript (344)
- # clojutre (1)
- # core-async (65)
- # cursive (9)
- # datascript (7)
- # datomic (28)
- # devops (1)
- # emacs (16)
- # events (1)
- # jobs (5)
- # keechma (18)
- # lumo (56)
- # off-topic (7)
- # om (3)
- # onyx (14)
- # protorepl (21)
- # re-frame (3)
- # reagent (20)
- # ring (12)
- # ring-swagger (9)
- # specter (17)
- # unrepl (14)
- # vim (14)
- # yada (22)
Has anyone had this problem or know what it might be about: https://groups.google.com/forum/?fromgroups#!topic/reagent-project/hB3ZLgqdD4M
@mikethompson looks like @yogthos has solved the issue?
it doesn't seem to be an issue here, in the example at the bottom of the page with a controlled form
@urbank I’ve noticed that calling reagent/flush
after you store the input in the atom usually solves the issue
I’ve had a similar issue with the material ui library
@mihaelkonjevic Hm, yup that solved it. Any idea what would be causing this? It isn't an issue with a regular :input element
@urbank it's the common problem with React inputs and async rendering, explained here for example: https://stackoverflow.com/questions/28922275/in-reactjs-why-does-setstate-behave-differently-when-called-synchronously/28922465#28922465
and Reagent has some built-in magic that fixes :input
I'm using React-bootstrap and had to write the helper like this to make inputs work: https://gist.github.com/metametadata/3b4e9d5d767dfdfe85ad7f3773696a60
@metametadata I see. Hm, might have to do something like that. Or I suppose reagent/flush
@metametadata thanks for sharing that gist, that type of solution could solve a bunch of input related problems
same with react-native inputs