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

Bug: eslint-plugin-react-hooks optional chaining in deps #19661

Closed
rteixeirax opened this issue Aug 20, 2020 · 5 comments · Fixed by #19680
Closed

Bug: eslint-plugin-react-hooks optional chaining in deps #19661

rteixeirax opened this issue Aug 20, 2020 · 5 comments · Fixed by #19680

Comments

@rteixeirax
Copy link

Packages

  • "react": "^16.13.1"
  • "eslint-plugin-react-hooks": "^4.0.8"

The issue #18819 still happens with [email protected].

Using the example code from the other issue gives the following errors:

image

image

@rteixeirax rteixeirax added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Aug 20, 2020
@gaearon gaearon added Component: ESLint Rules Type: Bug and removed Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Aug 20, 2020
@gaearon
Copy link
Collaborator

gaearon commented Aug 20, 2020

Thanks, would you like to look into a fix?

@pfongkye
Copy link
Contributor

Hi,
I can look into this if no one else is working on it.

@gaearon
Copy link
Collaborator

gaearon commented Aug 20, 2020

Sounds good.

@rteixeirax
Copy link
Author

Thanks @pfongkye.

@gaearon
Copy link
Collaborator

gaearon commented Sep 10, 2020

[email protected] should have the fix.

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

Successfully merging a pull request may close this issue.

3 participants