use CapturedError as dioxus::Ok() so resources still function as expected (#4851)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-27 15:06:21 -07:00
1 parent 9f0bacc85c
commit 281f68faf5
14 files changed
+200 -54

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ pub fn NavBar() -> Element {
#[component]
pub fn DogView() -> Element {
let mut img_src = use_loader(|| async move {
anyhow::Ok(
dioxus::Ok(
reqwest::get("https://dog.ceo/api/breeds/image/random")
.await?
.json::<serde_json::Value>()
+1 -1
View File
@@ -41,7 +41,7 @@ fn app() -> Element {
events.push(event);
}
anyhow::Ok(())
dioxus::Ok(())
});
rsx! {