Skip to content

[DynamicSizeList] Wrong positions after adding/removing items from the list #289

@brunolemos

Description

@brunolemos

I’m experimenting with the branch #102.

Almost everything works well.

I’m facing a problem when the list items change:

  1. Render list with initial items (ok)
  2. Remove the second item
  3. See some items get positioned wrong

See the blank space between items after filtering out the item that contains the word “progress”:

Kapture 2019-07-11 at 21 59 27

After I scroll past this blank space and go back, it get’s fixed.

I also noticed the items get wrong positions if new items are added to the list.

See wrong spacing after first item and cut off bottom buttons of the second item:

image

I don’t have a small reproducible demo, but the gif above is from this branch

I check and confirmed the props being passed to DynamicSizeList are being updated correctly (itemCount changes and this.getItemKey(2) get the the new id), so I believe it’s some react-window internal, probably related to the cache.

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