sycamore::reactive

Function provide_context

pub fn provide_context<T>(value: T)
where T: 'static,
Expand description

Provide a context value in this scope.

ยงPanics

This panics if a context value of the same type exists already in this scope. Note that it is allowed to have context values with the same type in different scopes.