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,
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,