Skip to content

Commit

Permalink
Fix async component test
Browse files Browse the repository at this point in the history
Makes the `AsyncComponentWithPropDestructuring` function actually async..
  • Loading branch information
mc1098 committed May 10, 2022
1 parent 2235f1d commit 9493584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sycamore-macro/tests/view/component-pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn ComponentWithChildren<'a, G: Html>(cx: Scope<'a>, prop: PropWithChildren<
}

#[component]
pub fn AsyncComponentWithPropDestructuring<'a, G: Html>(
pub async fn AsyncComponentWithPropDestructuring<'a, G: Html>(
cx: Scope<'a>,
PropWithChildren { children }: PropWithChildren<'a, G>,
) -> View<G> {
Expand Down

0 comments on commit 9493584

Please sign in to comment.