Skip to content

Commit

Permalink
Documentation changes related to context code snippets (#3396)
Browse files Browse the repository at this point in the history
  • Loading branch information
imbus64 authored Sep 23, 2023
1 parent 0f2fc59 commit 0c802f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.20/concepts/contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c802f8

Please sign in to comment.