News for hackers. Stuff that matters.
Re:Algebraic Effects for React Developers by Vinnl on Monday November 02, 2020 @08:05AM (#24967721)
I don't think hooks can actually do 1, 3 and 4. Components re-render whenever React feels like it's a good moment to do so. That happens to include "when state changes", but you're not able to rely on that. This will supposedly become more apparent once Concurrent Mode finally lands.

(You can certainly fault React for it being hard to grok the "correct" mental model, but it makes sense that its primitives do not match the wrong mental model to me.)

There are no comments on this comment yet.