redux-utilities / redux-promise

FSA-compliant promise middleware for Redux.
MIT License
2.67k stars 134 forks source link

Uncaught (in promise) Error #61

Open tonai opened 5 years ago

tonai commented 5 years ago

Hi, I got a problem with error handling. When you've got an error in an async action you get the error flag in the FSA and that 's great, because, with that, you might want to handle the error in the reducer and, for example, display the error message in a nice way. But when the promise is rejected, I also got the "Unhandled Rejection (Error): [error message]" which causes my app to crash... How can I recover from that ? How can I handle the error in my reducer ? Thanks,