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

Infinite scroll renders large amounts of slides in the DOM #83

@jaworek

Description

@jaworek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions