NestedLithoPrimitive

fun NestedLithoPrimitive(renderUnitId: Long, resolveContext: NestedLithoResolveContext, component: Component, treeProps: TreePropContainer?, currentState: TreeState, updates: List<PendingStateUpdate>?): Pair<Primitive, ResolveResult>

Returns a Primitive, and the ResolveResult that renders an embedded Litho component. This API should only be used when embedding Litho in a non Litho RC framework, like Bloks. This API accepts the current state and pending state updates.


fun NestedLithoPrimitive(renderUnitId: Long, resolveContext: NestedLithoResolveContext, component: Component, treeProps: TreePropContainer?, updatedState: TreeState): Pair<Primitive, ResolveResult>

Returns a Primitive, and the ResolveResult that renders an embedded Litho component. This API should only be used when embedding Litho in a non Litho RC framework, like Bloks. This API accepts the updated state; this API should only be used if the client framework applies state updates before resolving the component to a Primitive.