'httpbin.org/get request keep on called in Reacts application

Can any one explain why a get request kept on called in Reacts application. Refer the below image.

enter image description here



Solution 1:[1]

I found out the solution, I was using a npm package "react-detect-offline" to render components based on online and offline status, that was triggering a request to check the same.

Solution 2:[2]

if possible could you please expand upon your question a little more, like maybe an example of your code that's making the request?

(I don't have enough rep to post comments)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Priyadarshini
Solution 2 StarnightFox