-
Notifications
You must be signed in to change notification settings - Fork 80
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
Rename WorkflowAction.noop() to noAction(). #420
Rename WorkflowAction.noop() to noAction(). #420
Conversation
@@ -43,7 +43,7 @@ interface WorkflowAction<StateT, out OutputT : Any> : (StateT) -> Pair<StateT, O | |||
/** | |||
* Returns a [WorkflowAction] that does nothing. |
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 elaborate a bit in the kdoc, something like:
Returns a [WorkflowAction] that does nothing: no output is emitted, and `render` is called again with the same `state` as last time.
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.
Done.
@davidapgar @bencochran Does this change make sense in Swift too? Don't want to merge unless we agree on terminology. |
If I understand what this is correctly, the closest we have in Swift is a The usage we have for it is where there is an Output from a child that we want to "ignore" in the parent (but still have to map the output to an action). Is this the same use case? Does a |
4538063
to
49ec599
Compare
@davidapgar Exactly. I don't like |
Makes sense. I'm good with the name (will probably make it |
Closes #412.