News for hackers. Stuff that matters.
Re:React vs. Backbone in 2025 by ascagnel_ on Tuesday October 28, 2025 @11:18AM (#45733991)
Ah this is what I get for trying to write code on my phone. I'm specifically thinking of cases within useEffects, where the state setter is constant between renders but the state itself is not, so you can wind up with an infinite re-render once the state has changed once, unless you check the state inside the useEffect before calling setState.

There are no comments on this comment yet.