feat: suspense!

This commit is contained in:
Jonathan Kelley committed 2022-11-07 22:55:22 -08:00
1 parent e6c53803a6
commit 203935834d
13 files changed
+219 -205

No files matched your search

+5 -2
View File
@@ -32,7 +32,10 @@ async fn async_child(cx: Scope<'_>) -> Element {
fut.await;
println!("Future awaited");
println!("Future awaited and complete");
None
let dy = cx.component(async_child, (), "async_child");
VNode::single_component(&cx, dy, "app")
// VNode::single_text(&cx, &[TemplateNode::Text("it works!")], "beauty")
}