necolas / react-native-web

Cross-platform React UI packages
https://necolas.github.io/react-native-web
MIT License
21.69k stars 1.79k forks source link

Remove misleading fake http status code. #2722

Closed Romick2005 closed 1 month ago

Romick2005 commented 1 month ago

Image load can fail with any http error, not just 404 (Not found), but as in my case it was 401 (Unauthorized).

I guess if we do not know http status we should not make it. But I agree that in 95% it will 404, but not always.

If somebody really need http image status then might use XMLHttpRequest in a separate image load request call.

codesandbox-ci[bot] commented 1 month ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5ada9076b4522d2bd82d32e2b9520a23db0d13ee:

Sandbox Source
react-native-web-examples Configuration