Skip to content

//workflow/com.squareup.workflow1/stateless

stateless

[jvm]
Content
inline fun <PropsT, OutputT, RenderingT> Workflow.Companion.stateless(crossinline render: BaseRenderContext<PropsT, Nothing, OutputT>.(PropsT) -> RenderingT): Workflow<PropsT, OutputT, RenderingT>
More info

Returns a stateless Workflow via the given render function.

Note that while the returned workflow doesn’t have any internal state of its own, it may use props received from its parent, and it may render child workflows that do have their own internal state.