re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
rberger 2020-06-15T03:51:24.396200Z

Is re-frame.core/dispatch-n still a valid thing? Its not working for me and its not in https://github.com/day8/re-frame/blob/master/src/re_frame/core.cljc?

rberger 2020-06-15T03:51:42.396700Z

I see it in re-frame.fx

2020-06-15T03:51:53.397Z

So it is an effect

2020-06-15T03:52:04.397300Z

Not a function

rberger 2020-06-15T03:52:18.397800Z

So only call it from a reg-event-fx?

2020-06-15T03:52:38.398200Z

It is valid but you use it within an event handler

2020-06-15T03:53:36.399400Z

(def-event-fx 
  :event 
  (fn [cofx e] 
    {:dispatch-n  [[:one] [:two]]
     :db   ....}))  

2020-06-15T03:53:46.399700Z

notice it is data (key)

2020-06-15T03:53:58.400300Z

Not a function to call

rberger 2020-06-15T03:54:33.400700Z

Yes, ok, didn’t realize that.