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

105
Vistas
Are some detached DOM elements acceptable/unavoidable?

I'm building a React website and started getting an error message that there is a memory leak. Long story short, I figured out the source of the leak and resolved it, or at least got the error message to disappear.

But when I take HEAP snapshots, there still appears to be a memory leak. I'm still getting several DetachedHTMLDivElements and a bunch of other detached items that I'm not sure are relevant. I've attached the snapshot below.

HEAP snapshot

As someone new to web development, is it ever OK to have detached DOM elements? Are there situations where it's just unavoidable? Or should we always be eliminating these from our code?

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