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.