Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
Is a Flatlist the most efficient way to render small lists of data?

Currently our application uses a custom refreshing scrollview and the standard JavaScript Array.map method to render our data list. The data contains a list of tasks for a given user and will vary in length from user to user. Some of the results that we are fetching can take some time to load, so instead of fetching them all at once I am trying to stagger the loading to get a perceived boost in responsiveness.

The flatlist seems to be calling the onEndReached method when I only have a small number of results. (not enough to fill the entire screen) This causes an infinite loop in requests to get more data, but naturally there is nothing left on the server to fetch.

I have tried tweaking the onEndReachedThreshold value, but because I don't know how many tasks a given user will have I am struggling to find a number that will work across the board for all use cases.

Is the flatlist the best option for rendering small, limited value result sets or should it be reserved for infinite scrolling use cases where the data will just keep coming in?

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda