I would personally put the desired action at the beginning on the next sate, instead of at the end of the current one. 🙂
You can also add an intermediate state that has the action you want attached, but of course that is not ideal since it needs extra states to be created solely for this reason.
Does making this change to the code provides what you want to do?
If so I can add a “nextState” property in the next version. Just let me know of so.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.