-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Bug]: False positive for destructuring-assignment
with useContext
#3520
Labels
Comments
This was referenced May 24, 2024
This was referenced Jul 30, 2024
This was referenced Aug 4, 2024
This was referenced Aug 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Description Overview
This library is amazing 🙏
Just wanted to share that in latest (
7.32.0
) I'm getting a linting error for a non-destructured assign fromuseContext
. Please correct me if I'm wrong but I don't this this is valid in every case because the context value might be a nullable object.Expected Behavior
Here's a simple example of what I think should be a valid case:
eslint-plugin-react version
v7.32.0
eslint version
v8.31.0
node version
v16.14.2
The text was updated successfully, but these errors were encountered: