Function ambient_element::consume_context
source · pub fn consume_context<T: Clone + Debug + Sync + Send + 'static>(
hooks: &mut Hooks<'_>
) -> Option<(T, Setter<T>)>
Expand description
Consume a context of type T
provided further up the tree.
To provide context, use provide_context.