Skip to content

no-direct-mutation-state rule doesn't handle UpdateExpressions #1386

Closed
@zpao

Description

@zpao

this.state.foo++ does not trigger the no-direct-mutation-state rule.

this.state.foo += 1 does - indicating this is likely just that UpdateExpressions aren't handled.

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