How to avoid tricky async state manager pitfalls in React | Dark Hacker News