Skip to content

How to get the previous event that targets this state when inside of an action of a state with always eventless transitions? #4542

Answered by Andarist
Norlandz asked this question in Q&A
Discussion options

You must be logged in to vote

We just released a new major version of XState. It solves this problem since we removed the notion of null events there. So actions in always transitions should be always executed with the event that triggered the original transition

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Norlandz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants