react-instagram-embed icon indicating copy to clipboard operation
react-instagram-embed copied to clipboard

Handling Instagram post not found error

Open marijaantic opened this issue 7 years ago • 1 comments

Hi, I am using this library in a project where I need to cover error when there is no media on given Instagram URL. I have noticed that library in that situation doesn't call OnFailure function, but instead renders an empty div after it loads. Any suggestions how should this be handled? Thank you in advance!

marijaantic avatar Oct 19 '18 13:10 marijaantic

I'm running into this as well. It seems like undesirable behavior to not call onFailure when the post is not found. @sugarshin is this something you'd accept a pull request to fix?

fantapop avatar Nov 10 '20 00:11 fantapop