Skip to content

[Bug] [v2] Visible content position is not maintained when items are added and removed at the same time #1667

@jmysliv

Description

@jmysliv

Current behavior

I have a function that removes one item and adds new ones when the user reaches the start of the list (backward pagination). However, instead of maintaining a visible content position, it scrolls automatically to the top.

Simulator.Screen.Recording.-.iPhone.16.Plus.-.2025-05-20.at.16.29.34.mp4

Expected behavior

It should keep the current scroll position.

To Reproduce

https://github.com/jmysliv/rn-playground/tree/%40jmysliv/flash-list

Platform:

  • iOS
  • Android

Environment

2.0.0-alpha.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Important but not urgentbugSomething isn't workingv2.0

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions