Skip to content

react/no-unused-state broken for class fields #2076

Closed
@TzviPM

Description

@TzviPM

If a piece of state is used within an ES7 property initializer whose value is an arrow function, react/no-unused-state still reports the state as unused. For example:

screen shot 2018-12-06 at 2 12 12 pm

screen shot 2018-12-06 at 2 12 32 pm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions