This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-04
Channels
- # beginners (25)
- # boot (14)
- # business (1)
- # cljsrn (2)
- # clojure (180)
- # clojure-korea (14)
- # clojure-russia (8)
- # clojure-spec (9)
- # clojure-uk (17)
- # clojurescript (110)
- # cursive (14)
- # datomic (18)
- # emacs (23)
- # events (4)
- # garden (7)
- # hoplon (44)
- # lein-figwheel (1)
- # liberator (4)
- # london-clojurians (1)
- # om (10)
- # om-next (2)
- # onyx (22)
- # protorepl (60)
- # re-frame (36)
- # reagent (11)
- # ring (10)
- # yada (5)
@borkdude This is the critical bit: > One peculiarity about the props function is that it expects the props data to be the first argument to your function. Also it has to be a map (if it’s not props returns nil).
Hi, are there any articles about how to use reagent + d3.js in the right way, and the potential pitfalls? I've only found the following 3 articles. Thanks! https://github.com/Day8/re-frame/wiki/Creating-Reagent-Components#form-3-a-class-with-life-cycle-methods https://groups.google.com/forum/#!topic/clojurescript/rGcBOvLOhm4 http://codegists.com/snippet/clojure/d3-reagent-componentcljs_ajmorgan_clojure
quick q: do you even need something like redux-saga in reagent/re-frame? - are there any examples that solve similar kinds of problems (an event which waits for an async request and dispatches more events)
@cmal Article with the general pattern to use + links to some D3 examples: https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md
@gadfly361: great meeting you over lunch at Iron Works yesterday. It just clicked where I recognized your handle from (I'm a bit slow sometimes 😊)
Great meeting you too! I can be a bit shy sometimes, but thank you for letting me sit with you all :)
@ashconnor yes, that pattern works (a very simple state machine). For something more complicated see re-frame-async-flow
@ashconnor there is https://github.com/Day8/re-frame-async-flow-fx as one option for state machine type things