Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

49
Vistas
React Native memory leak from splash screen

So in my app I have a condition set of isLoading. On mount, it is set to true. If it is true it shows the splash screen instead of the app. Like so:

isLoading ? 
<SplashScreen/>
:
<App />

SplashScreen is just a centered flexbox with a standard Image component in it that references a local image.

Everything works fine except on web, I get the classic error Cannot perform react state update on unmounted component. This is a no-op but indicates a memory leak in your application.

I'm not sure where this memory leak is coming from... Does anyone have any ideas? All Im doing is on mount by default the app isLoading and once its done with the http requests and loading information it sets isLoading to false to display the app.

7 months 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 empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.