twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.85k stars 487 forks source link

Filtering an array where container no longer overflows does not render the LazyLoad #324

Closed N00nDay closed 3 years ago

N00nDay commented 4 years ago

I have an array of a lot of data lets just say for this purpose it is 100 objects of data in an array. I am currently mapping over this array to create elements from each object. The elements are similar to facebook posts in that some may have just text, others images/video/pdfs anything really. I am providing a filter for my users to quickly find what they are looking for in this list but I have found that when I filter the list to a number that no longer overflows the container then the elements will not load they just show the placeholder. If I filter the array again to an amount larger than the container then it works as expected.