Flatlist with search, onEndReached is not called when search return 0 results #20033
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
hi,
I have a flatlist which fetch data from a remote server, the flatlist have pagination implemented and a linked search functionality.
OnEndReached is called when I hit the end of the list and the next page is loaded, the same thing happen when I search through the list and one or more record is found that matchs the search criteria.
However when I search through the list and there is 0 result matching the search from the already loaded records, in this case onEndReached is not called at all.
I tried different value for the onendreachedthreshold but prop without success.
Do you have any idea why is this happening.
Thanks
The text was updated successfully, but these errors were encountered: