xstate/fsm - Ability to get most recent event in callback/state object #1352
Unanswered
timothyallan
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I really want to use xstate/fsm as I don't need any of the bigger xstate features. However, I do need to know when an event is fired, not just a state changed. Right now I'm looking at making an 'event' field in the context and populating it on each event.
It'd sure be nice to have something like xstates
onTransition
which brings back the state + the event in the listener, a field in the state itself, or at least some way to see what the event was.Beta Was this translation helpful? Give feedback.
All reactions