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

80
Vistas
Memory Slowness issue with React Context and lot of data

I have a simple react app that load some external pdf page from api Api send me result from page 1 its an array of all text of page sometimes there is 3000 text

{
  texts: [{ value: 'Title of page'}, {value:"Chapter 1"} ......
}

Render works good but after loading 50 pages my store is very heavy i have 3000 texts * 50 pages store in my context

I try to clean store to keep only last 10 pages but when i go back to page 1 i need to refetch the page and store it again in context

Do you have a solution other than context to avoid this performance issue (page lag when i scroll down to load another page) ?

Thanks

about 4 years ago · Juan Pablo Isaza
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