Function freya::prelude::try_use_context

source ·
pub fn try_use_context<T>() -> Option<T>
where T: 'static + Clone,
Expand description

Consume some context in the tree, providing a sharable handle to the value

Does not regenerate the value if the value is changed at the parent.