You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
asyncgetUser(request){returnnewPromise(resolve=>{constgeneratedAsyncFunction=promiseListener.generateAsyncFunction({start: 'START_ACTION_TYPE',resolve: 'RESOLVE_ACTION_TYPE',reject: 'REJECT_ACTION_TYPE'});generatedAsyncFunction.asyncFunction({ request }).then(resolvePayload=>{resolve(resolvePayload);},rejectPayload=>{resolve(rejectPayload);})});};// All requests are getting resolved with AgetUser('A').then(console.log);getUser('B').then(console.log);getUser('C').then(console.log);
The text was updated successfully, but these errors were encountered:
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?
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.
The text was updated successfully, but these errors were encountered: