diff --git a/examples/dog_app.rs b/examples/dog_app.rs index 510550b99..243e4bbca 100644 --- a/examples/dog_app.rs +++ b/examples/dog_app.rs @@ -21,7 +21,7 @@ fn app_root(cx: Scope<'_>) -> Element { .await }); - match breeds.suspend()? { + match breeds.value()? { Ok(breed_list) => cx.render(rsx! { div { height: "500px", h1 { "Select a dog breed!" } @@ -59,7 +59,7 @@ fn breed_pic(cx: Scope, breed: String) -> Element { .await }); - match fut.suspend()? { + match fut.value()? { Ok(resp) => render! { div { button { diff --git a/packages/hooks/src/usefuture.rs b/packages/hooks/src/usefuture.rs index 9d39e82de..18bf50310 100644 --- a/packages/hooks/src/usefuture.rs +++ b/packages/hooks/src/usefuture.rs @@ -167,10 +167,6 @@ impl UseFuture { (Some(_), None) => UseFutureState::Pending, } } - - pub fn suspend(&self) -> Option<&T> { - todo!() - } } impl<'a, T> IntoFuture for &'a UseFuture {