Преглед изворни кода

Merge pull request #783 from DioxusLabs/jk/cx_token_fix

Inline props should use cx token instead of `cx`
Jon Kelley пре 2 година
родитељ
комит
9c322881c7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/core-macro/src/inlineprops.rs

+ 1 - 1
packages/core-macro/src/inlineprops.rs

@@ -158,7 +158,7 @@ impl ToTokens for InlinePropsBody {
             #maybe_async #vis fn #ident #fn_generics (#cx_token: Scope<#scope_lifetime #struct_name #generics>) #output
             #where_clause
             {
-                let #struct_name { #(#field_names),* } = &cx.props;
+                let #struct_name { #(#field_names),* } = &#cx_token.props;
                 #block
             }
         });