Open stefanfrede opened 6 years ago
I also am running into this issue. Would be good if we could pass a conditional to resolve based on the payload (i.e. an ID has to match the id that was in the original action)
I am working on something like this. Given the little activity here I am considering to release the fork as a separate package on npm. Did the author move on to something else?
Take a look at this fork: https://github.com/JoinColony/redux-promise-listener/commit/db4175d03d289b8fc8a66fe515767a074d130f59
This maintains compatibility to the current usage of this module.
What you will have to do is passing through the meta property in your sagas if in the cases where you need it (there’s just no way around that), like in this module (which does a similar thing): https://github.com/diegohaz/redux-saga-thunk#usage
If I fire up multiple requests where each request takes some time before it gets resolved all requests are getting resolved with the first request which succeeds.