Skip to content

Commit

Permalink
Don't invent new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza1311 committed Jun 19, 2022
1 parent 8f1ce72 commit 79e8f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple_ssr/src/lib.rs
Expand Up @@ -18,7 +18,7 @@ async fn fetch_uuid() -> Uuid {

#[function_component]
fn Content() -> HtmlResult {
let uuid = use_prepared_state!(async |_| -> Uuid { fetch_uuid().await }, ())?.unwrap();
let uuid = use_prepared_state!(async move |_| -> Uuid { fetch_uuid().await }, ())?.unwrap();

Ok(html! {
<div>{"Random UUID: "}{uuid}</div>
Expand Down

0 comments on commit 79e8f57

Please sign in to comment.