cyntler / cyntler/react-doc-viewer

how to handle "HTTP 204 No Content"

Open
#136 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

doc viewer calling api and if reponse 204 it showing "Failed to load PDF file."

i dont want call same api twice for status. if doc viewer can give response status i can do like this or is there any other method

```
return (

{status == 200 ?
:

No Data Found
}

);
```

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.