Function freya::prelude::use_context

pub fn use_context<T>(cx: &ScopeState) -> 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.