Assume that an action creator (or a middleware) has a side-effect of starting a service: service.start()
.
The disable-action feature of redux-devtools reverts the state changes due to that specific action. How do we make sure that the side-effects are also reverted, which in the above example means calling service.stop()
? I guess what is needed is an observer for the state, but I'm not sure if this is the flux/redux way of implementing it.