We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, with reference to reduxjs/redux#722 (comment)
For example, if you got a store subscription like this:
let state = store.getState(); store.subscribe(() => { let previousState = state; state = store.getState(); if(state.x !== previousState.x){ throw error; } });
And now you change x through an action with a promise processed by your middleware, the error is swallowed silently. Something like this could help:
x
return promise(client).then( (result) => next({...rest, result, type: SUCCESS}), (error) => next({...rest, error, type: FAILURE}) ).catch((error)=>{ console.error(error); next({...rest, error, type: FAILURE}); } );
The text was updated successfully, but these errors were encountered:
Sure, seems reasonable.
Sorry, something went wrong.
catch promise errors. fixes #185
c91571d
No branches or pull requests
Hey,
with reference to reduxjs/redux#722 (comment)
For example, if you got a store subscription like this:
And now you change
x
through an action with a promise processed by your middleware, the error is swallowed silently. Something like this could help:The text was updated successfully, but these errors were encountered: