Skip to main content

RouteFocusOwner

Type Alias RouteFocusOwner 

Source
pub type RouteFocusOwner = Rc<dyn Fn(&WidgetTree, ElementId) -> Option<RouteId>>;
Expand description

Maps a mounted element to the route that owns it.

The mount integration supplies this attribution from mounted structure (keys, scope containment); the state never guesses ownership, so an element without an owner is never restored. Route identities are navigator-scoped, so use one state per Navigator.

Aliased Typeยง

pub struct RouteFocusOwner { /* private fields */ }