Function sycamore::reactive::try_use_context
source · [−]pub fn try_use_context<T>(cx: BoundedScope<'_, '_>) -> Option<&T>where
T: 'static,
Expand description
Tries to get a context value of the given type. If no context with the right type found,
returns None
. For a panicking version, see use_context
.