You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fparga
changed the title
Bug: eventless transitions in parallel states not taken when starting interpreter from given state
Bug: eventless transitions in parallel states not taken anymore when starting interpreter from given state
Aug 24, 2022
I've found the culprit behind this regression. It seems that this case here actually has been implicitly relying on a shared reference to configuration. Your issue depends on the resolved~ configuration but the algorithm mutates entrySethere (they were pointing to the same array prior 4.33)
I'll try to figure out an improved algorithm for this.
Description
Eventless transitions in parallel state are not taken anymore when interpreter is started from a given state.
Expected result
Eventless transitions should always be taken.
For example, in the linked reproduction sandbox, the expected result is:
This is the result obtained with xstate version < 4.33.0
Actual result
The eventless transition in example is not taken anymore with xstate version >= 4.33.0.
Instead, we get:
Reproduction
https://codesandbox.io/s/affectionate-thunder-esq8rn?file=/src/index.js
Additional context
It looks like a regression introduced in version 4.33.0.
The text was updated successfully, but these errors were encountered: