Function dioxus::prelude::with_owner

source ·
pub fn with_owner<S, F, R>(owner: Owner<S>, f: F) -> R
where S: AnyStorage, F: FnOnce() -> R,
Expand description

Run a closure with the given owner.

This will override the default owner for the current component.