Jun 14, 2024
This is why the compiler is never going to work--and why React itself is too complex for most people. Most people should be using useMemo and useCallback all the time, because the average dev can't reason through what is going on at the best of times. It's destructive and unhelpful to tell people _not_ to use them most of the time.
And when it comes to things like Redux and React Query--good luck!