Skip to main content

note_navigation

Function note_navigation 

Source
pub fn note_navigation(route: &str, label: Option<&str>)
Expand description

Announce a navigation to route from its source: a nav host (the sidebar nav host) calls this the instant it changes the bound selection, so the observer sees it synchronously instead of waiting for the route to settle into NAV_STACK a frame later (which maybe_notify_route_change reads). Deduped like the pump-boundary path. route is the host’s local key, which replays as a relative navigate (innermost-first), correct for both a top-level sidebar and a nested one.