Closed dimsuz closed 3 years ago
So far I'm porting "mindlessly" :wink: without giving it any thought (until I'll start to play with it/port tests over), so I don't feel confident enough to suggest a PR... Also no python setup as of yet. I'll just report as issues.
If you'll search for .transition
in algorithm.py
you'll find a few more usages of this non-existent property on state node, mostly commented out, but one other is not:
default_history_content[state.parent.id] = state.transition.content
Made a few updates - see #20, this should be fixed.
One more oddity I've found while porting to kotlin:
get_effective_target_states
function usess.transition
whileStateNode
does not have such property. It has only.transitions
which is a list:https://github.com/davidkpiano/xstate-python/blob/836b3a43a017831401cc3e44099d8f7090d60769/xstate/algorithm.py#L182-L187