Skip to content
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

Create global React error boundary #19

Open
therecluse26 opened this issue Jul 25, 2023 · 0 comments
Open

Create global React error boundary #19

therecluse26 opened this issue Jul 25, 2023 · 0 comments
Assignees

Comments

@therecluse26
Copy link
Owner

therecluse26 commented Jul 25, 2023

This app could use some global error handling (probably with a generic "an error has occurred" message of some sort that throws a Toast message to prevent silent errors. Implement this using a global error boundary on the root component and throw a toast message like so

 toast.current.show({
      severity: 'error',
      summary: 'Error',
      detail: "An error has occurred",
  })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants