Why is my react infinite scroller isnt working?
I think the loader doesn’t even work, I tried to change the length, one of its parameters, but it didn’t help, and it doesn’t work even once, I put console.log(1) in it, and the code didn’t work once, I think I didn’t set it up correctly somewhere
InfiniteScroll keeps fetching data until Maximum update depth exceeded
In my React project I’m using react-infinite-scroller to fetch data from an API when a user scrolls to the bottom of a page. The first fetch call works as expected when the page loads, but as soon as I scroll down 50+ API calls are made and I get the Maximum update depth exceeded
error. Any ideas as to what I may be doing wrong?