-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Add Error Handling document #34329
Add Error Handling document #34329
Conversation
Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: Steven <steven@ceriously.com>
@styfle, I've updated the doc as per your suggestions and commits. Please have a look 🙏 I'm also moving this PR from Draft to PR mode |
I was about to open an issue about using As reported here bvaughn/react-error-boundary#100 by someone else, the Next.js error overlay takes precedence and always shows up even when an error is thrown. I just tried with your proposed In my case I'm rendering content that comes from a dynamic source (headless CMS) and I'd like to add some extra safety if some of the data is missing or incomplete. Error boundaries would've allowed me to handle this in an elegant way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR adds a new Error Handling section and addresses questions around the React Error Boundaries and error pages in a Next.js app from the issue: https://github.com/vercel/documentation/issues/106
Bug
fixes #number
contributing.md
Feature
fixes #number
contributing.md
Documentation / Examples
yarn lint