Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #56, adding "react-hooks/exhaustive-deps" rule #57

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

simmo
Copy link
Contributor

@simmo simmo commented Feb 25, 2019

What does this PR cover?
Feature

Breaking change?
No

Are all the tests are passing?
Yes

Other information:

@simmo simmo added this to the 4.2.0 milestone Feb 25, 2019
@@ -2,6 +2,7 @@ module.exports = {
extends: ['plugin:react/recommended', '@zonedigital/eslint-config-zone'],
plugins: ['react-hooks'],
rules: {
'react-hooks/exhaustive-deps': 'warn',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added this as a warning for the moment as, although released and stable it appears the output is still under review. Kinda feel like we should have this as an error in the long term as not doing the hook dependencies fully will cause needless re-rending/processing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simmo simmo merged commit c864f05 into develop Feb 25, 2019
@simmo simmo deleted the feature/56-hook-exhaustive-deps-rule branch February 25, 2019 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants