RenderChildInvocation

class RenderChildInvocation(val workflow: Workflow<*, *, *>, val props: Any?, val outputType: KTypeProjection, val renderingType: KTypeProjection, val renderKey: String)(source)

Describes a call to RenderContext.renderChild.

Output and rendering types

The testing library will attempt to determine the output and rendering types by using reflection to determine the type arguments that the concrete workflow class passes to the Workflow interface. This is subject to the limitations of Kotlin's reflection. Notably, there is a compiler bug (KT-17103) that prevents reflecting on these types when the workflow is an anonymous class that was created by an inline function with reified types, such as Workflow.stateful and Workflow.stateless.

Parameters

workflow

The child workflow that is being rendered.

props

The props value passed to renderChild.

outputType

The KType of the workflow's OutputT.

renderingType

The KType of the workflow's RenderingT.

renderKey

The string key passed to renderChild.

Constructors

Link copied to clipboard
constructor(workflow: Workflow<*, *, *>, props: Any?, outputType: KTypeProjection, renderingType: KTypeProjection, renderKey: String)

Properties

Link copied to clipboard
Link copied to clipboard
val props: Any?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val workflow: Workflow<*, *, *>