feat: suspense!

This commit is contained in:
Jonathan Kelley committed 2022-11-06 01:48:34 -07:00
1 parent aec1b326ba
commit a38fc9e4ab
16 files changed
+469 -236

No files matched your search

+4 -1
View File
@@ -230,13 +230,16 @@ fn async_children() {
render! {
div {
async_child {}
"Hello world"
}
}
}
async fn async_child(cx: Scope<'_>) -> Element {
let d = 123;
let user_name = use_fetch("https://jsonplaceholder.typicode.com/users/1").await;
render! { p { "{d}" "hii" } }
}