-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to ignore transition to same state #267
Conversation
…me-state Feature/ignore transition to same state
…me-state Add ability to ignore transition to same state
Sorry, can't find where to squash commits |
Yess, please merge and tag this!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a test to make sure that it fails when transitioning to the same state when that is not allowed?
@Briareos17 Are you able to add the test as @freekmurze mentioned? We also really need this! :) |
Handled in #270 |
@zayedadel Thank you a lot for help with this |
@Briareos17 you're welcome |
In some cases it is convenient not to get an error when you try to perform a transition to the same state, for example, when the state comes from the API and you do not know in advance what it is, so as not to manually register such cases through allowTransition, I added the ability to ignore such transitions