Fork me on GitHub
#re-frame
<
2018-09-14
>
bmaddy00:09:56

Oh geez, I figured out the solution to my "not subscribing to multiple signals" problem. The subscription that uses the two signals must destructure the incoming values in order to actually get invoked. So instead of this:

(re-frame/reg-sub
 ::chart-data
 :<- [::selected-scenario]
 :<- [::scenario-ids]
 (fn [_ _]
you need this
(re-frame/reg-sub
 ::chart-data
 :<- [::selected-scenario]
 :<- [::scenario-ids]
 (fn [[selected ids] _]
picard-facepalm (cc/@curlyfry in case you were curious)

abdullahibra00:09:40

hello guys

👋 4
kenny18:09:37

Is there a way to forcibly pause event processing?

manutter5118:09:41

Maybe make a middleware that checks the state of a “pause” flag?

kenny20:09:38

I found a cleaner solution to my problem 🙂