fix root component suspense
This commit is contained in:
1 parent
d637ef187c
commit
c19420cb29
4 files changed
+8
-21
No files matched your search
@@ -16,12 +16,6 @@ struct AppProps {
|
||||
}
|
||||
|
||||
fn app(cx: Scope<AppProps>) -> Element {
|
||||
render! {
|
||||
Child {}
|
||||
}
|
||||
}
|
||||
|
||||
fn Child(cx: Scope) -> Element {
|
||||
let state =
|
||||
use_server_future(cx, (), |()| async move { get_server_data().await.unwrap() })?.value();
|
||||
|
||||
|
||||
Reference in new issue
Block a user