Odonno / ReduxSimple

Simple Stupid Redux Store using Reactive Extensions
http://www.nuget.org/packages/ReduxSimple/
MIT License
143 stars 19 forks source link

Filter actions based on where they came from (ObserveAction) #29

Closed Odonno closed 6 years ago

Odonno commented 6 years ago

In order to make the sample app work, I need to dispatch action to start asynchronous task.

But the thing is that if using the History, the asynchronous break the existing timeline. So, there is different strategies to fix that:

  1. Add a boolean to the result of the observable to tell if the action is dispatched normally or if it comes from the History
  2. Or add a filter enum/boolean on ObserveAction to be able to observe actions only if dispatched in a normal app (not from history)