Function dioxus_hooks::use_context
source · pub fn use_context<T: 'static + Clone>(cx: &ScopeState) -> Option<&T>
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.