Implement Into<CaptureError> for the default server function error type (#4205)

* implement Into<CaptureError> for the server function error type

* document the server function error type

* fix tests
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-06-20 18:37:51 -07:00
1 parent 67f717647f
commit f610c6b8c1
20 files changed
+316 -96

No files matched your search

+5 -2
View File
@@ -1,12 +1,14 @@
#![doc = include_str!("../README.md")]
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
#![deny(missing_docs)]
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(all(feature = "web", feature = "document"))]
mod web;
mod error;
#[cfg(all(feature = "web", feature = "document"))]
pub use web::FullstackWebDocument;
@@ -19,8 +21,9 @@ pub use dioxus_fullstack_hooks::history::FullstackHistory;
pub mod prelude {
pub use dioxus_fullstack_hooks::prelude::*;
pub use crate::error::{ServerFnError, ServerFnResult};
pub use dioxus_server_macro::*;
pub use server_fn::{self, ServerFn as _, ServerFnError};
pub use server_fn::{self, ServerFn as _};
#[cfg(feature = "server")]
pub use dioxus_server::prelude::*;