Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3619

Provisional Headers are shown - solved but I don't know why exactly?

$
0
0

I am using useQuery to handle my API requests and ran to this error when I was trying to handle two GET requests in one functional component, I tried other people’s solutions and the error was still there. It was gone only when I separated two APIs and put each of them in a separate component. My question is why exactly?

I expected both APIs to work just fine alongside each other but the second one was shown as OPTION type in the network tab of the inspector.


Viewing all articles
Browse latest Browse all 3619

Trending Articles



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