3 ms·
Useless rerenders are really hard to avoid in the latest react, mostly because they changed the rerendering logic of useTransition, breaking some of the state a
by valyagolev 4y ago
Useless rerenders are really hard to avoid in the latest react, mostly because they changed the rerendering logic of useTransition, breaking some of the state abstractions built on top of it. Had to downgrade and started to think about using class-based components again. Hooks are very beautiful but too weird, weak and leaky as an abstraction, unfortunately
- nightpool 4y agoYou mean they changed the edge-case performance characteristics of an experimental alpha API? It feels hard to get up-in-arms about that.
- 11235813213455 4y agoI don't think you especially need to try to prevent useless re-renders, as long as it doesn't slow down the app