react-doc-viewer
react-doc-viewer copied to clipboard
Add error management when fetching documents
I am currently using external APIs that sometimes get stuck during the prefetch, so I dont get che correct content type and I'm unable to show the document. It will be nice to have a lifted up state that tells me that the fetch/prefetch failed so I can trigger a useEffect to re-render the component or to refetch