This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

Function yew_router::hooks::use_navigator

source ·
pub fn use_navigator<'hook>() -> impl 'hook + Hook<Output = Option<Navigator>>
Expand description

A hook to access the Navigator.

§Note

When used in function components and hooks, this hook is equivalent to:

pub fn use_navigator() -> Option<Navigator> {
    /* implementation omitted */
}