Replies: 1 comment
-
How does the eslint plugin behave in this manner? Also, you can already pass a list of stable hooks to the rule: https://biomejs.dev/linter/rules/use-exhaustive-dependencies/#options |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
useExhaustiveDependencies will apparently error if a hook includes a stable function in the dependency array, e.g.
while the setValue isn't strictly needed since it should be stable, it is a matter of individual repo code style whether it should be included or not.
it would be helpful to be able to control the list of stable hooks or simply allow stable function to be included in the dependency array.
Beta Was this translation helpful? Give feedback.
All reactions