-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
Describe the bug
The current example
<form {...createPost.enhance(async ({ form, data, submit }) => {
try {
await submit();
form.reset();
showToast('Successfully published!');
} catch (error) {
showToast('Oh no! Something went wrong');
}
})}>
<!-- -->
</form>
gives the impression, given the preceding examples with validation, that a successful submit() implicitly means that the validation was successful.
The documentation would be better if it showed explicit handling of failed validation.
Reproduction
N/A
Logs
N/ASystem Info
N/ASeverity
annoyance
Additional Information
No response
simonmayr, cerqiest and philippone
Metadata
Metadata
Assignees
Labels
No labels