I have noticed that whenever hasChanged() is fired from a Marty store, rendering exceptions thrown from listening containers' components always are thrown on hasChanged().
Here is an example:
Trying to surface the React component error using marty container, here is a contrived view that will also throw error on render
var MyBadUsersView = React.createClass({
render: function () {
throw new Error('crap');
}
});
module.exports = MyBadUsersView
this is its container which listen to changes on UserStore
I have noticed that whenever hasChanged() is fired from a Marty store, rendering exceptions thrown from listening containers' components always are thrown on hasChanged().
Here is an example: Trying to surface the React component error using marty container, here is a contrived view that will also throw error on render
this is its container which listen to changes on UserStore
Here is the store which triggers this.hasChanged() on UserConstans.RECEIVE_USER
As you can use the rendering exception thrown in the component surfaces when this.hasChanged() is called in UserStore.
My question is: Is there anyways for React components within a Marty Container to surface their rendering exceptions to top of the application?