This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-29
Channels
- # admin-announcements (2)
- # beginners (20)
- # boot (139)
- # cider (6)
- # clara (1)
- # cljs-dev (7)
- # cljsrn (4)
- # clojure (160)
- # clojure-berlin (1)
- # clojure-canada (6)
- # clojure-gamedev (1)
- # clojure-japan (7)
- # clojure-russia (14)
- # clojure-spec (90)
- # clojure-uk (10)
- # clojurescript (73)
- # clojutre (1)
- # conf-proposals (8)
- # crypto (67)
- # cursive (9)
- # datomic (6)
- # editors-rus (1)
- # events (1)
- # figwheel (6)
- # funcool (2)
- # hoplon (19)
- # instaparse (37)
- # kekkonen (4)
- # lein-figwheel (2)
- # leiningen (5)
- # luminus (1)
- # off-topic (1)
- # om (10)
- # onyx (60)
- # protorepl (2)
- # re-frame (81)
- # reagent (10)
- # ring-swagger (15)
- # rum (6)
- # specter (17)
- # test-check (10)
- # uncomplicate (31)
- # untangled (12)
- # yada (6)
If I try to add :pointer-events to a :style map, it doesn't get added to the html tag. Is this intended, or should I open an issue?
hello reagent folks - i’ve got some questions related to this JS stateful component example: https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md
#1 reading the props via (reagent/props comp)
… why not read them from (defn gmap-inner [props] …
instead? any good reasons for this?
#2 is there a good reason to pass around the comp
parameter taken from :component-did-mount (fn [comp] …
?
@michael.heuberger
#1: when using lifecycle methods reagent/props
is the only way to get up-to-date props (inside render there's no reason to use reagent/props
)
#2: pass around in what way? Either you need the component instance for something or you dont 🙂
I often end up wanting to trigger a file input via JS as described here: http://stackoverflow.com/questions/8595389/programmatically-trigger-select-file-dialog-box The lack of React Refs in Reagent make this trickier than it should be. What is "your hack" to trigger clicks on on an element programmatically?
ah, thanks for the reminder - think i should re-read some docs over again
@michael.heuberger this could be a step ahead but might be insightful with regards to props & reagent as well: https://www.martinklepsch.org/posts/props-children-and-component-lifecycle-in-reagent.html
thx man, much appreciated