react-images icon indicating copy to clipboard operation
react-images copied to clipboard

Error handling

Open BernardA opened this issue 7 years ago • 0 comments

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

BernardA avatar Nov 30 '18 09:11 BernardA