Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Fetch issues of responses

$
0
0

I don't understand why that happens and the response gives: {"_U": 0, "_V": 0, "_W": null, "_X": null} i really don't get it any help?

export const handleConnectivityChange = async() => {let probablyHasInternet;try {    const googleCall = await fetch('https://google.com', {        headers: {'Cache-Control': 'no-cache, no-store, must-revalidate',            Pragma: 'no-cache',            Expires: 0,        },    })    probablyHasInternet = googleCall.status === 200;    console.log(probablyHasInternet)} catch (e) {    probablyHasInternet = false;}return probablyHasInternet

}


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>