Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventless ("Always") Transitions are not supported #52

Open
auphofBSF opened this issue Oct 13, 2021 · 1 comment
Open

Eventless ("Always") Transitions are not supported #52

auphofBSF opened this issue Oct 13, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@auphofBSF
Copy link

Implementing the unit tests history_statein.py in #49 highlighted that eventless transitions always is yet to be implemented in xstate-python

The unit tests test_history_should_go_to_the_most_recently_visited_state_by_a_transient_transition_non_interpreter is suppressed in commit:785d2bd

In the commit cf25c7d support has been added to test for unsupported events and the appropriate logging and exception raising, and to handle events to states with custom id's https://xstate.js.org/docs/guides/ids.html#custom-ids

In #49 commit 5893129 the StateNode object support has been copied from XStateJS 4 for transition determination and formatting but has not been checked/debugged. Possible support can be found in functions get_transitions and format_transitions and validate_arrayified_transitions

docs ref:
https://xstate.js.org/docs/guides/transitions.html#eventless-always-transitions
https://xstate.js.org/docs/guides/transitions.html#transient-transitions

relevant discussion: #49

Suggest this be labeled as Feature Request

@davidkpiano davidkpiano added the enhancement New feature or request label Oct 13, 2021
@davidkpiano
Copy link
Member

The SCXML tests are more important for this - let's prioritize eventless transitions before the always: ... sugar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants