Quantcast
Channel: Why does async work in ComponentDidMount lead to visual lag when navigating unless a simple timeOut is awaited? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by satya164 for Why does async work in ComponentDidMount lead to...

Seems like your NetworkRequest.getData(payload) function is doing something expensive synchronously. Because JavaScript is single threaded, the next action doesn't happen until this function returns...

View Article



Answer by Vencovsky for Why does async work in ComponentDidMount lead to...

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...

View Article

Why does async work in ComponentDidMount lead to visual lag when navigating...

I have a tabbed react native app and have 2 related questions: Why does the navigation between screens visually lag when doing async work (such sending a network request) in the target view's...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images