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

Enable allow-in-func mode by default in no-did-mount-set-state and no-did-update-set-state rules #702

Merged
merged 2 commits into from
Jul 27, 2016

Conversation

lencioni
Copy link
Collaborator

There are many people who regularly call this.setState in a callback
in componentDidMount and componentDidUpdate. Although there
was an option for this rule that would allow this to happen, we have
decided to make it the default.

Addresses #686.

There are many people who regularly call `this.setState` in a callback
in `componentDidMount`. Although there was an option for this rule that
would allow this to happen, we have decided to make it the default.
There are many people who regularly call `this.setState` in a callback
in `componentDidUpdate`. Although there was an option for this rule that
would allow this to happen, we have decided to make it the default.
@yannickcr yannickcr mentioned this pull request Jul 24, 2016
9 tasks
@yannickcr yannickcr merged commit 376dc53 into jsx-eslint:master Jul 27, 2016
@yannickcr
Copy link
Member

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants