Merge pull request #783 from DioxusLabs/jk/cx_token_fix
Inline props should use cx token instead of `cx`
This commit is contained in:
1 file changed
+1
-1
@@ -158,7 +158,7 @@ impl ToTokens for InlinePropsBody {
|
|||||||
#maybe_async #vis fn #ident #fn_generics (#cx_token: Scope<#scope_lifetime #struct_name #generics>) #output
|
#maybe_async #vis fn #ident #fn_generics (#cx_token: Scope<#scope_lifetime #struct_name #generics>) #output
|
||||||
#where_clause
|
#where_clause
|
||||||
{
|
{
|
||||||
let #struct_name { #(#field_names),* } = &cx.props;
|
let #struct_name { #(#field_names),* } = &#cx_token.props;
|
||||||
#block
|
#block
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user