Skip to content

Flatlist with search, onEndReached is not called when search return 0 results  #20033

Description

@growMeup

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions