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

158
Vistas
React Native: can calling setstate at least 10 times per second be slow for the app?

I use setState to be able to get the current duration of a video. But I was wondering if with setState, my application could be slow (because setState is called more than 10 times per second)? Knowing that setState is the parent component, and that it contains the video and several other components.
I know there is mobx, or redux. But for this kind of program, setState must be in the parent component for functional reasons...
So do you know if this might be a problem for my app performance ?

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

0

If it's re-rendering another components that shouldn't get re-rendered, yes this is a performance issue. Also if you don't want to use an external state manager, you can simply use the React context API (https://beta.reactjs.org/learn/scaling-up-with-reducer-and-context). Anyways, in order to fix performance, you may want to research about React.memo (https://www.w3schools.com/react/react_memo.asp).

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