jossmac / jossmac/react-images

Error handling

Open
#267 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.