use_provide_context

Function use_provide_context 

Source
pub fn use_provide_context<T>(init: impl FnOnce() -> T) -> T
where T: Clone + 'static,
Expand description

Store the given value in this component instance. Any descendant component of this component calling use_consume or consume_context will have access to it.