Threads rendering state through the component tree.
Holds the component map, data model, surface ID, and optional scope path (for template-expanded children with relative bindings).
Summary
Functions
Builds a RenderContext from a Surface struct.
Returns a new context with the given scope path set.
Types
@type t() :: %A2UI.Components.RenderContext{ components: %{required(String.t()) => A2UI.Component.t()}, data_model: A2UI.DataModel.t(), scope_path: String.t() | nil, surface_id: String.t() }
Functions
@spec from_surface(A2UI.Surface.t()) :: t()
Builds a RenderContext from a Surface struct.
Returns a new context with the given scope path set.