brocoders / redux-async-connect

It allows you to request async data, store them in redux state and connect them to your react component.
645 stars 103 forks source link

Log any exception when doing loadAsyncData #93

Closed flyfy1 closed 8 years ago

flyfy1 commented 8 years ago

Currently, if there're any exception happens after the data loaded & rendering the new view, this exception would be taken by the Promise. Therefore, it would appear fine but indeed.. users would see an empty screen because the view is not rendered properly due to exception.

This pull request tells the user that the exceptions happened indeed, and points to the developer where exactly is the exception (by logging the stacktrace)