sycamore::reactive

Function try_use_context

pub fn try_use_context<T>() -> Option<T>
where T: Clone + 'static,
Expand description

Tries to get a context value of the given type. If no context is found, returns None.