Azordev / dasher-user

ONLINE ACCESS SYSTEM FOR CUSTOMER AND CONSUMER MONITORING.
https://dev--azordev-dasher-user.netlify.app/
Apache License 2.0
2 stars 4 forks source link

Fixed ErrorBoundary #202

Closed e-azocar closed 2 years ago

e-azocar commented 2 years ago

Description

The initial problem with the Error Boundary was that, it didn't catch the errors. In the React documentation, they explain the errors that this component can't catch

Currently the ErrorBoundary can catch errors like throw new Error("error message"), [].toUpperCase(), undefined.data. However, the errors of compilation, errors of asyncronous code or Javascript syntax errors, can't be catched for this.

fixes #104

Screenshots

image

netlify[bot] commented 2 years ago

✔️ Deploy Preview for azordev-dasher-user ready!

🔨 Explore the source changes: 79702a6c78a7e9fbf4e844ef96afe49375216752

🔍 Inspect the deploy log: https://app.netlify.com/sites/azordev-dasher-user/deploys/61f00f30b8e7e200086c28f6

😎 Browse the preview: https://deploy-preview-202--azordev-dasher-user.netlify.app

Israel-Laguan commented 2 years ago

can you explain which error does this catch?

Maybe make a list or describe step by step

e-azocar commented 2 years ago

can you explain which error does this catch?

Maybe make a list or describe step by step

I added a short list of errors that ErrorBoundary can catch