wip: so much suspense code

This commit is contained in:
Jonathan Kelley committed 2022-11-03 22:30:26 -07:00
1 parent d2ce57ba6e
commit aec1b326ba
9 files changed
+305 -37

No files matched your search

+3
View File
@@ -97,6 +97,7 @@ impl ScopeState {
name: fn_name,
is_static: P::IS_STATIC,
props: Cell::new(detached_dyn),
placeholder: Cell::new(None),
}
}
}
@@ -135,6 +136,8 @@ pub enum RenderReturn<'a> {
Async(Pin<BumpBox<'a, dyn Future<Output = Element<'a>> + 'a>>),
}
pub type FiberLeaf<'a> = Pin<BumpBox<'a, dyn Future<Output = Element<'a>> + 'a>>;
pub trait IntoVnode<'a, A = ()> {
fn into_dynamic_node(self, cx: &'a ScopeState) -> VNode<'a>;
}