This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (25)
- # beginners (21)
- # boot (161)
- # cider (12)
- # clojure (92)
- # clojure-art (1)
- # clojure-germany (5)
- # clojure-nl (5)
- # clojure-russia (38)
- # clojure-sweden (1)
- # clojurescript (87)
- # clojutre (2)
- # cursive (9)
- # datascript (1)
- # datomic (22)
- # devops (1)
- # editors (33)
- # events (3)
- # hoplon (19)
- # immutant (7)
- # jobs (2)
- # ldnclj (22)
- # off-topic (41)
- # re-frame (34)
- # reagent (39)
@gadfly361 thanks for your help. I fixed the issue: for the select element, I used on-click event, after read the react doc, I changed it to use on-change event. then it works on both PC and mobile. I am using a physical phone & physical tablet. Just wondering why on-click works on PC but not on mobile.
Oh, sorry, here it is: https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md.
I’m excited about the
[:input] cursor stuff, have been shamelessly aping the implementation inside re-com without really understanding it 😐
@timgilbert: that's good that you've been testing it. I came up with the solution, but it actually isn't something we use very much. So your further testing is good.
@timgilbert: Personally, I'm most excitted about the better error reporting (the "path" to the component will now be given when an error occurs in rendering)
@mikethompson: I finally find what happend. The issue was that i was updating the local state, then on the following render i was taking it into account
@mikethompson: maybe it's a kind of error that we could add the rookies mistake section of the wiki of reframe
in reagent-forms, can I set a field attribute (e.g., rows for a textarea) based on a key in the ratom?
more generally, I suppose the question is: as I understand it, bind-fields uses the field :id value to pick out a key from the ratom... is there a way to do that more generally for attributes
my events-fn passed to bind-fields is catching the events and updating the state correctly, I'm just not successfully using that value.
@mikethompson: I've updated the not-example part https://gist.github.com/benzen/dac5018371fd124fa3c7, do you think it's enought ?
I guess I could puzzle over this for 10 mins and figure out what the intent is, and then what the problem might be. But most readers won;t have the time -- you really have to spoon feed people (like me ... I'm lazy)
@benzen: To be an example of a rookie mistake, it has to be so simple that a rookie can understand it. That means it has to be about 5 lines code long and hit you between the eyes. I can see various puzzling things in that code, but it is all waaay too much, and to be honest I'm still not exactly sure of the specific point you are trying to highlight. If I don't immediately get it, a rookie won't.
@benzen what are (on-right) (on-left) calls trying to achieve in the first example? don’t they cause re-rendeing? also swap on L29 looks suspicious. Component should not change its state during render call. It can do that in response to events, but should not do it during rendering itself.