Skip to main content

reduce_surface

Function reduce_surface 

Source
pub fn reduce_surface(
    components: &[FlatComponent],
    options: &ReduceOptions,
) -> ReduceResult
Expand description

Reduce a flat component list. Children resolve from the root down, so components nothing references (a basic Button’s consumed Text child) do not appear. A missing or cyclic reference becomes an Unknown placeholder plus an issue. VAPP-103: an id placed a second time (two parents, or one parent twice) renders at its first place only (id used twice), a node deeper than maxDepth is an Unknown placeholder, and past maxComponents nodes the rest is dropped (catalog/limits.json).