Skip to main content

view_html_lowerable_with

Function view_html_lowerable_with 

Source
pub fn view_html_lowerable_with(
    nodes: &[ViewNode<'_>],
    all: &[ComponentDef<'_>],
    interner: &Interner,
) -> Result<(), NotLowerable>
Expand description

view_html_lowerable with the component list, so a CHILD COMPONENT can be checked: a <TodoRow todo={t}/> is server-renderable exactly when the child’s own view is.

Without the list a child is refused, which is the honest answer for a caller that cannot see the other components (a -> View route body checked on its own).