Skip to content

Create global React error boundary #19

@therecluse26

Description

@therecluse26

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",
  })

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions