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

267
Vistas
In ReactJS, why child components re renders on dispatch in specific child component?

Child components renders in loop, but when dispatching an action addcomment or list comments action it re renders all child components instead of selected one. See video of issue... https://www.awesomescreenshot.com/video/6662865?key=13c71c93a5a75039da0a386f4d6b347e

see child component code: https://jsitor.com/4Q_ulWOXl

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Although it is hard to understand from shared code. Looks like you are rendering Post Component in a loop. Can you check if the following are correct?

  1. Each Post component rendered inside loop has unique key associated with it.
  2. Check if comments added are changed in the particular post matching with payload id.
  3. It can be the case in your reducer you are mapping through every post and updating with current value.
about 4 years ago · Juan Pablo Isaza Denunciar
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