renderState

inline fun <TState : ViewState<TModel, TDependency>, TModel : Any, TArgs, TDependency, TAction : Action<TModel, TDependency>, TRenderer : Renderer<TModel, TState>, TLoop : Loop<TState, TModel, TArgs, TDependency, TAction>> renderState(constructor: (model: TModel, renderer: TRenderer, args: TArgs?) -> TLoop, model: TModel, renderer: TRenderer, args: TArgs? = null): TState

Render a given Loop into a state.

Return

a state based on the input arguments

Parameters

constructor

a Loop constructor reference

model

model used for rendering

renderer

Renderer instance used for rendering

args

optional arguments for the Loop