Skip to content

How To Fail A State Transition? #82

@billyb2

Description

@billyb2

Hi! While working with this library, I noticed that it isn't really possible to fail a state transition. If a state's OnEntry or OnExit return an error, it looks like the state of the FSM is still updated. Is there a way to automatically set the state back to how it previously was, if the transition fails? I of course could do that by having another trigger, but having that happen automatically could be useful.

Thank you for this amazing library :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions