react-doc-viewer icon indicating copy to clipboard operation
react-doc-viewer copied to clipboard

Add error management when fetching documents

Open robertodraGit opened this issue 2 years ago • 0 comments

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

robertodraGit avatar Aug 25 '22 09:08 robertodraGit