xstate
xstate copied to clipboard
Bug: Breaking change in nextState call in 4.33
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.