Hard

React Infinite Scroll Performance: Fix Missing Dependencies in useEffect Hook

In a news website's infinite scroll implementation, you need to handle scroll events efficiently and prevent duplicate API calls. What's the issue with this code?

Choose an option below