Hey all I have finally updated my React Native App which also comes with an update of React to 19.2.0.
That version of React adds/activates a new ESLint rule named react-hooks/set-state-in-effect. Which does make sense to enforce I guess and I did found a couple of places where I was able save one or two unnecessary re-renders but here I really am not sure what the best fix is. Here is a simplified but reproducible example:
In the continuing saga of us wanting the best web components DX ever without going all-in on a “prebundled” base class, here’s another exciting development!
As you know, here at That HTML Blog we're all about layering on lightweight and “vanilla-adjacent” tools to projects after you've fully outgrown native web APIs (and got sick of writing a ton of boilerplate 😏).