Skip to content

Commit

Permalink
docs: log error on failing to convert form to ServerFn type, in addit…
Browse files Browse the repository at this point in the history
…ion to setting action value (#2319)
  • Loading branch information
gbj committed Feb 16, 2024
1 parent 0a321a1 commit 7dc0441
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions router/src/components/form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ where
action.dispatch(new_input);
}
Err(err) => {
error!(
"Error converting form field into server function \
arguments: {err:?}"
);
batch(move || {
value.set(Some(Err(ServerFnError::Serialization(
err.to_string(),
Expand Down

0 comments on commit 7dc0441

Please sign in to comment.