Function leptos::with_current_owner
source · pub fn with_current_owner<T, U>(f: impl Fn(T) -> U + 'static) -> impl Fn(T)where
T: 'static,
Expand description
Wraps the given function so that, whenever it is called, it is run in the reactive scope of whatever the reactive owner was when it was created.
§Panics
Panics if there is no current reactive runtime.