Skip to main content

PageBuilder

Type Alias PageBuilder 

Source
pub type PageBuilder<State> = Rc<dyn Fn() -> AnyView<State>>;
Expand description

A page builder: a cheap closure that produces the page’s view, re-run every rebuild so a retained page’s content still reconciles against live app state (the pod, and thus the page’s internal widget state, is preserved across the rebuild — only the view descriptor is rebuilt).

Aliased Type§

pub struct PageBuilder<State> { /* private fields */ }