Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

81
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda