This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Description
Describe the bug
When using infinite scroll in the carousel it renders large amount of unnecessary DOM elements.
To Reproduce
https://codesandbox.io/s/x3k64q47qq
Expected behavior
DOM elements should be removed when they are not needed.
Additional context
I'm currently using react-slick to render infinite carousel that contains slides that display information and buttons that allow interaction with the application. If I switch to this library, rendering these components many times could have bad implications on the performance.
One of the solutions that I was thinking about was to use react-virtualized or react-window to efficently render slides, but I could not find a way to achieve infinite scroll with them.