Fork me on GitHub
#re-frame
<
2018-04-14
>
lwhorton17:04:49

is there a way to register an reg-fx :some-key some-fn such that the fx can be handed not just the tiny dsl but also the DB, too?

mikethompson22:04:39

@lwhorton there's no mechanism for that

mikethompson22:04:32

Two options: 1. When you create the effect (in the event handler) give it the data it needs then 2. Implement the effect handler as an interceptor which can have access to the entire :effect (and can add and remove from :effect)