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

Function use_location

Source
pub fn use_location<'hook>() -> impl 'hook + Hook<Output = Option<Location>>
Expand description

A hook to access the current Location.

ยงNote

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

/// A hook to access the current [`Location`].
pub fn use_location() -> Option<Location> {
    /* implementation omitted */
}