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

Fix crash in no-access-state-in-setstate #1560

Merged
merged 1 commit into from Nov 21, 2017

Conversation

jomasti
Copy link
Contributor

@jomasti jomasti commented Nov 21, 2017

With an IIFE in the return statement of render that uses this.state,
there is no parent with a name. In this rule, the method names are later
checked to see if they are being called elsewhere in the file. Since
there is no intention of this being called anywhere else, the IIFE will
just be skipped being added to the list of methods.

Fixes #1559

With an IIFE in the return statement of render that uses `this.state`,
there is no parent with a name. In this rule, the method names are later
checked to see if they are being called elsewhere in the file. Since
there is no intention of this being called anywhere else, the IIFE will
just be skipped being added to the list of methods.
@yannickcr yannickcr merged commit 6829c5c into jsx-eslint:master Nov 21, 2017
@yannickcr
Copy link
Member

Thanks!

@jomasti jomasti deleted the issue-1559 branch November 22, 2017 01:32
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