We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The documentation suggests the ErrorBoundary callback form provides a printable error message...
<ErrorBoundary fallback={(err, reset) => <div onClick={reset}>Error: {err}</div>}> <MyComp /> </ErrorBoundary>
...however the err parameter is actually an error object which requires err.toString() to show a useful message...
err
err.toString()
<ErrorBoundary fallback={(err, reset) => <div onClick={reset}>Error: {err.toString()}</div>}> <MyComp /> </ErrorBoundary>
To Reproduce Example with solution. Remove .toString() to see the problem.
The text was updated successfully, but these errors were encountered:
2354581
No branches or pull requests
Describe the bug
The documentation suggests the ErrorBoundary callback form provides a printable error message...
...however the
err
parameter is actually an error object which requireserr.toString()
to show a useful message...To Reproduce
Example with solution. Remove .toString() to see the problem.
The text was updated successfully, but these errors were encountered: