-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Something similar to a 500 response but on the client. #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
#152 ought to do the trick :) ... when its merged. |
Then you could: function fivehundred() {
Router.replaceWith('500');
}
var routes = (
<Routes onTransitionError={fivehundred}>
<Route name="500" path="error" handler={FiveHundred}/>
</Routes>
); If this becomes a common pattern, maybe we provide an |
Awesome, I look forward to using it thanks! |
Hi guys, looking at: |
+1 on this, if i'm doing some async work between screens, and there is an error, i'd like to render something but keep the url that was pushed into history as is. similar to displaying an error page from the server. |
Since this has been un-fixed, can the issue be re-opened? |
So, I did something stupid (meh, it's bound to happen). Which caused the following in my console:
Granted, I know this means that I need to add better error handling, and I will. However, when something like this happens in production then the screen is just blank, which is not ideal for an end user.
It'd be nice if there was an error handler that got called that could deal with it so the page is not just blank. Similar to how some web servers serve up a custom page for a 500 response.
Something like
<UnhandledErrorRoute handler={CustomerErrorHandler} />
no path needed since it would stand at whatever url had the error.The text was updated successfully, but these errors were encountered: