@@ -113,6 +113,16 @@ public fun <RenderingT> Workflow.Companion.rendering(
113
113
rendering : RenderingT
114
114
): Workflow <Unit , Nothing , RenderingT > = stateless { rendering }
115
115
116
+
117
+ @Deprecated(
118
+ " Always provide a debugging name" ,
119
+ ReplaceWith (" action(\" TODO: debugging name\" , update)" )
120
+ )
121
+ public fun <PropsT , OutputT , RenderingT >
122
+ StatelessWorkflow <PropsT , OutputT , RenderingT >.action (
123
+ update : WorkflowAction <PropsT , * , OutputT >.Updater .() -> Unit
124
+ ): WorkflowAction <PropsT , Nothing , OutputT > = action(" " , update)
125
+
116
126
/* *
117
127
* Convenience to create a [WorkflowAction] with parameter types matching those
118
128
* of the receiving [StatefulWorkflow]. The action will invoke the given [lambda][update]
@@ -123,7 +133,7 @@ public fun <RenderingT> Workflow.Companion.rendering(
123
133
*/
124
134
public fun <PropsT , OutputT , RenderingT >
125
135
StatelessWorkflow <PropsT , OutputT , RenderingT >.action (
126
- name : String = "" ,
136
+ name : String ,
127
137
update : WorkflowAction <PropsT , * , OutputT >.Updater .() -> Unit
128
138
): WorkflowAction <PropsT , Nothing , OutputT > = action({ name }, update)
129
139
0 commit comments