Allow to remove hooks from "useExhaustiveDependencies" #5325
lcswillems
started this conversation in
Rule suggestion
Replies: 1 comment 6 replies
-
I think most of those should be true positives. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Personally, I find "useExhaustiveDependencies" only useful for useMemo.
For useEffect, most of the time, it is false positives (90% of the time), because there are some times where I don't want to run effects when some variable changes, even though I use that variable in the useEffect.
However, for useMemo, all reports of the rules are good catches.
Beta Was this translation helpful? Give feedback.
All reactions