diff --git a/precognition.md b/precognition.md index b350b694706..f2f914357cb 100644 --- a/precognition.md +++ b/precognition.md @@ -83,7 +83,9 @@ const submit = () => form.submit(); {{ form.errors.email }} - + ``` @@ -161,6 +163,14 @@ const submit = () => form.submit() }); ``` +You may determine if a form submission request is in-flight by inspecting the form's `processing` property: + +```html + +``` + ### Using Vue & Inertia @@ -254,7 +264,9 @@ export default function Form() { /> {form.invalid('email') &&
{form.errors.email}
} - + ); }; @@ -327,6 +339,14 @@ const submit = (e) => { }; ``` +You may determine if a form submission request is in-flight by inspecting the form's `processing` property: + +```html + +``` + ### Using React & Inertia @@ -429,7 +449,9 @@ To enable live validation, you should bind the form's data to it's relevant inpu
- + ``` @@ -478,6 +500,14 @@ You may also determine if an input has passed or failed validation by passing th > **Warning** > A form input will only appear as valid or invalid once it has changed and a validation response has been received. +You may determine if a form submission request is in-flight by inspecting the form's `processing` property: + +```html + +``` + #### Repopulating Old Form Data