Fork me on GitHub
#re-frame
<
2019-09-19
>
henrik07:09:20

Is it possible to re-dispatch multiple events from within an event body? I have the case of event X always requiring that event Y and Z also runs, but Y and Z have no such requirements. (Break out Y and Z to named functions or interceptors is the obvious workaround, but I’m curious. Also, there’s the slight benefit of not having to deal with Clojure’s namespace dependency graph.)

mccraigmccraig08:09:39

@henrik are you meaning something other than a :dispatch or :dispatch-n effect ? https://github.com/Day8/re-frame/blob/master/docs/API.md#dispatch

henrik08:09:56

No, that’s exactly it, thank you

lilactown21:09:19

does anyone have experience profiling re-frame apps?

lilactown21:09:50

I am suspicious about my current data (using Chrome DevTools) because I don’t see my re-frame events/subscriptions code