Skip to content

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

Closed
@zpao

Description

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.

Activity

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

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