Skip to content

Rows in <List> unmount and then mount when they leave the active window #416

@benthehenten

Description

@benthehenten

Thanks for the awesome library!

I noticed some strange behavior with the List related to the overscanRowCount setting. Let's say there are 10 rows visible and overscanRowCount is set 10. When I scroll the list such that a row leaves the visible region, but is still within the overscan radius, the component is unmounted and then instantly re-rendered. This is an issue since it causes unnecessary re-renders and resets the local state of the components as they leave the screen.

If this is indeed a bug, and not expected behavior, I'd be happy to code up a minimal reproduction and help work toward a fix!

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions