Documentation changes related to context code snippets (#3396)

This commit is contained in:
Imbus 2023-09-23 15:03:48 +02:00 committed by GitHub
parent 0f2fc59b54
commit 0c802f80ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ struct Theme {
#[function_component]
fn NavButton() -> Html {
let theme = use_context::<Theme>();
let theme = use_context::<Rc<Theme>>().expect("Context not found");
html! {
// use theme