Fork me on GitHub
#re-frame
<
2022-02-11
>
jmckitrick19:02:10

What are the criteria from making a handler ‘fx’ rather than just ‘db’ style? Obviously http is an example, but what about dispatching other events?

emccue20:02:01

but also don't dispatch other events

johanatan04:02:08

I think the answer is in the question. -db is for handlers that only modify the db. Anything else will require -fx.

Noah Bogart19:02:01

Any effect (fx) that isn't just the :db fx requires using reg-event-fx

2
jmckitrick20:02:33

Yep, I completely forgot about :fx and the :dispatch event. Thanks!