Skip to content

[Bug] [v2] Changing item span does not work correctly when updating data #1681

@rubenamorim

Description

@rubenamorim

Current behavior

Changing the item span has no effect if we update the data of items that have already been rendered.
This was not an issue in v1.

Expected behavior

Changing the item span should be taken into account for all items when updating the data.

To Reproduce

https://snack.expo.dev/@rubenamorim/flashlist-v2-issue

Considering the previous example, where we have a list of items with full-width sections and a button that allows us to remove the sections, when clicking the toggle button to remove the title from the data array, all the items should occupy one column.

Screen.Recording.2025-05-29.at.21.52.16.mov

Platform:

  • iOS
  • Android
  • Web

Environment

2.0.0-rc.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0bugSomething isn't workingv2.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions