update suspend in use_server_future

This commit is contained in:
Evan Almloff committed 2024-03-05 18:39:32 -06:00
1 parent c9603ea984
commit 716eb11426
2 files changed
+2 -2

No files matched your search

@@ -36,7 +36,7 @@ async fn main() {
}
// Hydrate the page
#[cfg(all(feature = "web", not(feature = "server")))]
#[cfg(not(feature = "server"))]
fn main() {
dioxus_web::launch_with_props(
dioxus_fullstack::router::RouteWithCfg::<Route>,
@@ -54,7 +54,7 @@ where
// Suspend if the value isn't ready
match resource.state().cloned() {
UseResourceState::Pending => {
suspend();
suspend(resource.task());
None
}
_ => Some(resource),