Skip to content

onEndReached fires multiple times when using initialScrollIndex #2169

@naqvitalha

Description

@naqvitalha

Bug Report

When using FlashList with initialScrollIndex set, the onEndReached callback fires multiple times during the initial render, even though the user hasn't scrolled at all.

Steps to Reproduce

  1. Create a FlashList with initialScrollIndex={50} and onEndReached callback
  2. Observe that onEndReached fires 2-3 times immediately on mount
  3. This causes unnecessary data fetching

Expected Behavior

onEndReached should only fire when the user actually scrolls near the end of the list, not during the initial scroll position setup.

Environment

  • flash-list: 2.3.0
  • react-native: 0.84.1
  • Platform: iOS 18, Android 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Important but not urgent

    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