Skip to content

//workflow/com.squareup.workflow1/StatelessWorkflow/render

render

[jvm]
Content
abstract fun render(renderProps: PropsT, context: StatelessWorkflow.RenderContext<PropsT, OutputT, RenderingT>): RenderingT
More info

Called at least once any time one of the following things happens:

  • This workflow's [renderProps](render.md) change (via the parent passing a different one in).
  • A descendant (immediate or transitive child) workflow:
    • Changes its internal state.
    • Emits an output.

Never call this method directly. To get the rendering from a child workflow, pass the child and any required props to RenderContext.renderChild.

This method should not have any side effects, and in particular should not do anything that blocks the current thread. It may be called multiple times for the same state. It must do all its work by calling methods on context.