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
jsx-no-constructed-context-values: class instance false positive #3295
Labels
Comments
Since there's no components defined in this code, I wouldn't expect that rule to warn. This seems like an oversight. |
@ljharb Could I take on this issue |
Go for it! |
golopot
added a commit
to golopot/eslint-plugin-react
that referenced
this issue
Oct 3, 2022
…ge in non-components Fixes jsx-eslint#3295
golopot
added a commit
to golopot/eslint-plugin-react
that referenced
this issue
Oct 3, 2022
…ge in non-components Fixes jsx-eslint#3295
golopot
added a commit
to golopot/eslint-plugin-react
that referenced
this issue
Oct 3, 2022
…ge in non-components Fixes jsx-eslint#3295
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the following code:
The rule docs explain:
The rule description only mentions object literals and function expressions and it does not seem to me like React would re-initialize previously initialized class instance on a re-render.
`
The text was updated successfully, but these errors were encountered: