Function freya::prelude::use_context_provider
pub fn use_context_provider<T>(f: impl FnOnce() -> T) -> Twhere
T: 'static + Clone,
Expand description
Provide some context via the tree and return a reference to it
Once the context has been provided, it is immutable. Mutations should be done via interior mutability.