Skip to content

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

@rteixeirax

Description

@rteixeirax

Packages

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

The issue #18819 still happens with eslint-plugin-react-hooks@4.0.8.

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

image

image

Activity

gaearon

gaearon commented on Aug 20, 2020

@gaearon
Collaborator

Thanks, would you like to look into a fix?

pfongkye

pfongkye commented on Aug 20, 2020

@pfongkye
Contributor

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

gaearon

gaearon commented on Aug 20, 2020

@gaearon
Collaborator

Sounds good.

rteixeirax

rteixeirax commented on Aug 21, 2020

@rteixeirax
Author

Thanks @pfongkye.

gaearon

gaearon commented on Sep 10, 2020

@gaearon
Collaborator

eslint-plugin-react-hooks@4.1.1 should have the fix.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @gaearon@pfongkye@rteixeirax

      Issue actions

        Bug: eslint-plugin-react-hooks optional chaining in deps · Issue #19661 · facebook/react