xstate icon indicating copy to clipboard operation
xstate copied to clipboard

Bug: Breaking change in nextState call in 4.33

Open richtera opened this issue 2 years ago • 0 comments

Description

The nextState call is now affecting the current state and creating transisions.

Expected result

nextState should return the next state without affecting the current state of the machine or interp.

Actual result

I see transitions and actions being executed due to a nextState call.

Reproduction

https://codesandbox.io/s/musing-hill-ooejpy?file=/src/index.tsx

Additional context

The sandbox doesn't readily display the problem, but I can't post the issue without an example.

richtera avatar Aug 09 '22 14:08 richtera