Eau de Parfum · stink 71/100
react smells of a component that re-rendered
- Top
- virtual DOM ozone, hooks dependency arrays
- Heart
- state lifted too high, useEffect cleanup forgotten
- Base
- a stale closure, memoized for no reason
Ingredients: Alcohol Denat., Aqua, Parfum, Virtual DOM Ozone, Hooks Dependency Arrays, State Lifted Too High, UseEffect Cleanup Forgotten, A Stale Closure, Memoized For No Reason. Patch test before Monday.
Bright, declarative, faintly smug. Opens with elegance, sours the moment a dependency array omits one variable and the whole room re-renders for no reason.