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
return a configuration when scheduling a state changes to break out of loop #2155
Conversation
I see you just made some changes, but allow me to bikeshed on the API some more!
|
I don't really have an issue with
There are already 8 different methods, adding a variation for each would bump that to 16... |
Ah, I didn't read the PR properly. Yeah then it makes a lot more sense. |
I'm still not 100% sure I like the name |
cea8f40
to
fe8006c
Compare
fe8006c
to
2ca5481
Compare
8b771e6
to
94e5036
Compare
probably won't be relevant anymore soon |
fixes #1700
State changes have an extra parameterrerun
that will keep the current behaviour whentrue
, but exit the current in-frame loop whenfalse
, allowing state changes to happen only once per trigger in some case.I'm not very happy about thererun
name or the doc for it, please help!All methods scheduling a state change (
set
,replace
, ...) now returns aStateTransitionConfig
that can change what happens after the state change: