jaredLunde / masonic

🧱 High-performance masonry layouts for React
https://codesandbox.io/s/0oyxozv75v
MIT License
797 stars 49 forks source link

Why does it unmount items that are in a viewport? #163

Closed zernie closed 5 months ago

zernie commented 5 months ago

After rendering a masonry deck, it almost immediately re-mounts them. I don't use any options besides render and items. Is this an intended behavior?

jaredLunde commented 5 months ago

Yes

zernie commented 5 months ago

but why?

jaredLunde commented 5 months ago

Read the comment in the thread you replied to. It's how the algorithm works. Use something else if you don't like it ✌🏼