salsita / redux-side-effects

Redux toolset for keeping all the side effects inside your reducers while maintaining their purity.
MIT License
180 stars 9 forks source link

Complex ajax workflows? #21

Closed frankandrobot closed 7 years ago

frankandrobot commented 7 years ago

So if I'm understanding this correctly, this is like redux-thunk, except that the side effects are done right in the reducer. But if I want a complex ajax workflow, for example, coordinate two ajax lookups coming out of order, it's the same monkey business as redux-thunk (where in this case, one solution is to add an extra field to the store, fetchingId or something similar)?

tomkis commented 7 years ago

Yes, absolutely. For this purpose I highly encourage you to use redux-saga.