You’re making two different mistakes related to immutable values—addSteps
returns a new change set, which you are just ignoring, and you shouldn’t mutate a state field value (currentValue
) but create a new one instead.
See also this thread.
You’re making two different mistakes related to immutable values—addSteps
returns a new change set, which you are just ignoring, and you shouldn’t mutate a state field value (currentValue
) but create a new one instead.
See also this thread.