Skip to content

Scrolling jumps when removing data for invisible items #1786

@josephds-scopely

Description

@josephds-scopely

Current behavior

This test case limits the number of data pages in memory by removing a page from the other end of the list when a new page of data is loaded. But this causes a sudden jump in the scrolling when data items are removed even though none of those items are visible.

screen-20250716-125738-1.mp4

Expected behavior

There should be no visible jump in the scrolling when data for invisible items is removed.

To Reproduce

Use this project: FlashlistTestProject.zip

  • Run on Android (npm install && npm run android)
  • Select "Limited pages in memory"
  • Keep scrolling up until you observe a jump

Platform:

  • iOS (not tested)
  • Android

Environment

FlashList 2.0 RC
React Native 0.80.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething 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