Open okhowang opened 3 years ago
Can you specify why you need the arguments in the Transition
? They are normally already passed in the function call-backs.
I want write log once state changed for debugging state machine. And args is the detail info of transition.
I'm hesitant to add the Arguments
property to Transition
. It does make sense but there are already many callbacks whose parameters are a transition and the arguments, so it would be confusing to have the arguments in both place.
Yet your use case is valid, so I will think on a way to cover it. Other proposals are also welcomed.
@qmuntal is any better way here?
@qmuntal is any better way here after 2 years?
related #16