api’s are being called infinitely when used with HOC I have few components which shares same markup(html structure) but different functionality. So I decided to use HOC. But After implementing HOC, I noticed that the api’s are being called infinitely inside useEffect hook of the wrapped component (which is dynamically sent to HOC). I don’t…

Read More