Browse Source

wrap the result of render_with_location in an option

Evan Almloff 1 year ago
parent
commit
af75fb855f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/rsx/src/lib.rs

+ 3 - 1
packages/rsx/src/lib.rs

@@ -85,7 +85,9 @@ impl CallBody {
         };
         };
 
 
         quote! {
         quote! {
-            #body
+            Some({
+                #body
+            })
         }
         }
     }
     }
 }
 }