Handling API request race conditions in React
· One min read
Many blog articles talk about loading api/async data in React apps, with componentDidMount
, useEffect
, Redux, Apollo...
Yet, all those articles are generally optimistic, and never mention something important to consider: race conditions could happen, and your UI may end up in an inconsistent state.
❤️️ Did you like this article? Retweet it! 🙏
Don't miss the next email!