You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent an infinite loop in browsers when an error happens in resolve
Whenever an error occurs resolving a component `this.state.error = true`,
however handling the error happens too late. As a result in an environment
where `typeof window !== 'undefined'` i.e. the browser, this results in an
infinite `render` loop.
This PR hoists the error handling earlier in the `render` call.
Fixes#42
0 commit comments