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
- Create a FlashList with
initialScrollIndex={50} and onEndReached callback
- Observe that
onEndReached fires 2-3 times immediately on mount
- 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
Bug Report
When using FlashList with
initialScrollIndexset, theonEndReachedcallback fires multiple times during the initial render, even though the user hasn't scrolled at all.Steps to Reproduce
initialScrollIndex={50}andonEndReachedcallbackonEndReachedfires 2-3 times immediately on mountExpected Behavior
onEndReachedshould only fire when the user actually scrolls near the end of the list, not during the initial scroll position setup.Environment