Function leptos_router::use_route_data
source · pub fn use_route_data<T: Clone + 'static>() -> Option<T>
Expand description
Returns the data for the current route, which is provided by the data
prop on <Route/>
.
pub fn use_route_data<T: Clone + 'static>() -> Option<T>
Returns the data for the current route, which is provided by the data
prop on <Route/>
.