Closed
Description
I've read "My function value is constant" from #14920 (comment).
There is a problem on the opposite spectrum of this, which is where you get infinite loops (a function value always changes). We catch that in the lint rule now when possible (in the same component) and suggest a fix. But it's tricky if you pass something several levels down.
If you autofix the useEffect
, would it also be possible to autofix any functions added by wrapping them in a useCallback
at the same time?
This would greatly improve the user experience.