adam 2020-06-23T02:39:18.006100Z

Where is the code for Domino 3 here: Does it happen automatically?


@somedude314 The simple example, uses reg-event-db


And not reg-event-fx


So that means the event handlers only ever return an updated value for app-db


So that's teh only effect


IF it used reg-event-fx instead, then the event handlers could return other effects


And, in that case, you might have needed to register effect handlers for those other effects


But, as it happens, there's a built-in effects handler for app-db so you don't need to supply it

adam 2020-06-23T02:47:08.010500Z

The :dispatch here


That's a built in effect


So somewhere in re-frame is does this ...

(re-frame.cosre/reg-fx   ;; <--- API for registering an effects handler
  :dispatch              ;; <--- the effect for which we are registering a handler 
  (fn [val]              ;; <-- the handler which will action the effect


It is all explained on the page you are reading


@somedude314 ^^

adam 2020-06-23T02:53:06.013300Z

Thanks a lot, I think I understand now. Will definitely go over the docs.

Jakob Durstberger 2020-06-23T08:50:32.013500Z

Great stuff, thanks

Marlus Araujo 2020-06-23T15:42:43.018Z

hello there! I’m very excited with functional programming and decided to learn a functional language. I’ve been studying Clojure for a week, as a challenge, I want to port this personal project I was building with choojs and xstates. Do you recommend a state chart lib to use with re-frame? Is there a book about re-frame?

manas_marthi 2020-06-23T16:39:38.018900Z

hey, did anyone try reactn with reagent? -

Lu 2020-06-23T17:44:00.019700Z

Chartjs react works great with re-frame


@m972 The book on re-frame is here: :-) Be sure to also look in here for other written material and video courses: xstate is a very sophisticated library, and there isn't an equivalent for re-frame. Libraries like Chartjs and VegaLite (the one we use) are straight-forward to integrate.