-
Notifications
You must be signed in to change notification settings - Fork 23
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 boundary #577
base: main
Are you sure you want to change the base?
add error boundary #577
Conversation
Deploying dexter with Cloudflare Pages
|
Some questions:
|
When using Next.js (also with React alone) I believe it is best practice to implement an error file (at least 1, at the level of the root layout) to handle unexpected runtime errors and display a fallback UI.
Please have a look at |
Where are we with this PR? Not sure if we are waiting on something or just need to review and merge? |
For this PR to merge I suggest to:
|
handle uncaught exceptions and solves #283
can be tested by throwing an error in any page
throw new Error("This is a simulated error!");
Untitled_.Sep.10.2024.2_24.PM.webm
Next.js doc here