You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have implemented this in re-frame-rules, a fork re-frame-async-flow-fx which tackles the problem of state tracking and cyclical flows by providing a declarative, non-stateful approach to binding rules. My goal is to get as much of these small improvements back into re-frame-async-flow-fx so we don't have forks lying around.
The use case is, in case it isn't obvious, for firing off a number of events and then handling their responses as they come in. This is much more useful in a non-stateful rule set, since you're just saying "When this happens, do this" and when it happens doesn't matter. Real-world example:
I have implemented this in re-frame-rules, a fork re-frame-async-flow-fx which tackles the problem of state tracking and cyclical flows by providing a declarative, non-stateful approach to binding rules. My goal is to get as much of these small improvements back into re-frame-async-flow-fx so we don't have forks lying around.
A new fn
get-dispatch-n
, as shown here: https://github.com/jeaye/re-frame-rules/blob/36811b3dfc3f56079209ed0f9341cb99fa79fa36/src/com/jeaye/re_frame_rules.cljs#L80-L87Used in two places:
massage-rule
: https://github.com/jeaye/re-frame-rules/blob/36811b3dfc3f56079209ed0f9341cb99fa79fa36/src/com/jeaye/re_frame_rules.cljs#L99make-rules-event-handler
: https://github.com/jeaye/re-frame-rules/blob/36811b3dfc3f56079209ed0f9341cb99fa79fa36/src/com/jeaye/re_frame_rules.cljs#L127The use case is, in case it isn't obvious, for firing off a number of events and then handling their responses as they come in. This is much more useful in a non-stateful rule set, since you're just saying "When this happens, do this" and when it happens doesn't matter. Real-world example:
This would also be an indirect solution to #12.
The text was updated successfully, but these errors were encountered: