feat: transition to cx, props
This commit is contained in:
1 parent
f1cff845ce
commit
bfdcb20437
14 files changed
+88
-50
No files matched your search
@@ -511,7 +511,7 @@ impl<'a> NodeFactory<'a> {
|
||||
let caller: &'a mut dyn for<'b> Fn(&'b Scope) -> DomTree<'b> =
|
||||
bump.alloc(move |scope: &Scope| -> DomTree {
|
||||
let props: &'_ P = unsafe { &*(raw_props as *const P) };
|
||||
let res = component(Context { props, scope });
|
||||
let res = component(Context { scope }, props);
|
||||
unsafe { std::mem::transmute(res) }
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user