feat: transition to cx, props

This commit is contained in:
Jonathan Kelley committed 2021-09-21 13:13:15 -04:00
1 parent f1cff845ce
commit bfdcb20437
14 files changed
+88 -50

No files matched your search

+1 -4
View File
@@ -275,10 +275,7 @@ impl Scope {
let sus: &'a VSuspended<'a> = unsafe { std::mem::transmute(sus) };
let cx: SuspendedContext<'a> = SuspendedContext {
inner: Context {
props: &(),
scope: self,
},
inner: Context { scope: self },
};
let mut cb = sus.callback.borrow_mut().take().unwrap();