Skip to content

Mutating state #6

@mebble

Description

@mebble

The this.state.intervals of app.js is going through mutations.

When the user is editing the timer and when it's counting down, the interval being changed is actually mutated while a reference to it through this.state exists. So this.state can see the mutation. We need a deep copy of intervals when updating/counting the time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions