jossmac / jossmac/react-images
Error handling
Open
- Dominant language
- JavaScript
- Stars
- 2.3k
- Forks
- 433
- PR merge metrics
- No merged PRs in 30d
Description
**Steps to reproduce the behavior:**
Try to show a file that does not exist.
**Expected behavior:**
Show custom component to user, so to properly notify him/her of the error.
**Actual behavior:**
Shows only an empty image. No errors messages on the screen nor in console.
I could not find any method for error handling, particularly in case of any file load error.
Ideally one should be able to show a component notifying the user.
As an example see [react-pdf ](https://www.npmjs.com/package/react-pdf)
Contributor guide
Assessment
This issue has not been assessed yet.