RMF003 — onSubmit threw
The form calls onSubmit from a DOM submit event, where nobody is waiting on the promise it
returns. A failure there is the app's to handle — the form does not know whether a network
error should become a message, a retry or a redirect — but it must not vanish either, so it is
reported and the form leaves isSubmitting behind it.
Handle it inside the handler, which is where the context is:
async save(values: Signup) {
try {
await register(values);
} catch {
this.form.setError("email", "we could not reach the server");
}
}
Next
- All diagnostics — every code the framework can report.
- Checking your app — the faults proved from the source, before anything runs.