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

187
Visualizações
Is there a way to improve performance in a React 18 application when navigating away from a page with many components?

I recently updated from React 16 to React 18 and performance during rendering has decreased substantially. The issue appears to be that unmounting components is a slow process. I ran a performance analysis navigating away from the same page and I can see that when I am using React 18 the event handler on page transition takes almost 3 seconds versus 750ms for the same thing in React 16. I am also seeing this lagging behavior any time a component with many children (like a table) is removed from the DOM. Running the React Profiler shows "react commit" is taking up most of the time. Is there some way to make improve React 18 performance when removing components from the screen? Has anyone else noticed this behavior?

I included screenshots of the performance analysis from clicking on a link to navigate away from a page with a table.

React 18 performance

React 16 Performance

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