TLDR Web Dev · OPINIONS & ADVICE
THE DATA SHOULD JUST FLOW
Summary from the TLDR Web Dev newsletter
React memoization techniques, like `useMemo` and `useEffect`, can lead to stale data if dependencies are incorrectly specified, creating a "clog" in the data flow. This is because of closures in JavaScript, where outdated values are captured if dependencies are omitted. The React compiler hopes to solve this by automatically handling dependencies.