Why does the navigation between screens visually lag when doing async...
Maybe it can be laggy because you are on dev mode. Please try it on production.
Why does this visual delay disappear entirely when I await a brief timeout before doing the real async work?
I'm not sure what is NetworkRequest.getData
doing, I can be something about it, but if it returns a promise, maybe you should try using await
on it.
You are also forgetting to add async
to your componentDidMount
.
async componentDidMount(){
await NetworkRequest.getData(payload);
}