Add PartialEq and Eq derives to ServerFnError (#4393)
This fixes the missing `PartialEq` implementation for `ServerFnError` in v0.7.0-alpha.2 which was breaking `use_memo` functionality. Closes #4387
This commit is contained in:
1 parent
a4ebdcb69e
commit
b82ba85653
1 file changed
+1
-1
@@ -120,7 +120,7 @@ pub type ServerFnResult<T = (), E = String> = std::result::Result<T, ServerFnErr
|
||||
/// )))
|
||||
/// }
|
||||
/// ```
|
||||
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
pub enum ServerFnError<T = String> {
|
||||
/// An error running the server function
|
||||
ServerError(T),
|
||||
|
||||
Reference in new issue
Block a user