cyntler / cyntler/react-doc-viewer

Add error management when fetching documents

Open
#39 0 comments 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.