Skip to content

ListView duplicating items as it recycles views/scrolls  #23

Description

@billdami

It appears that there is a bug in <ListView> where if you have a list of items that extends beyond the visible viewport, as you scroll down, the newly rendered items at the bottom of the list will just be duplicates of items at the top of the list, instead of the next actual items in the backing items array. E.g. :

//For a backing array of: 
//['Item A', 'Item B', 'Item C', 'Item D', 'Item E']

<ListView>
    <Item>Item A</Item>
    <Item>Item B</Item>
    <Item>Item C</Item>
     {{!-- below viewport --}}
    <Item>Item A</Item>
    <Item>Item B</Item>
     ...
</ListView>

(pseudo code representation to illustrate whats happening)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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