From 5bd0c539156cf3cb05c6d14f36e25cc79de5cd8c Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Fri, 2 Jun 2023 13:40:02 +1000 Subject: [PATCH 1/3] Add processing docs --- precognition.md | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/precognition.md b/precognition.md index b350b694706..d9aedd9e820 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 submission request is in-flight by checking 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 submission request is in-flight by checking 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 submission request is in-flight by checking the form's `processing` property: + +```html + +``` + #### Repopulating Old Form Data From e2733c1be5728346443436616f5bf0b41ffb4f31 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 1 Sep 2023 09:49:13 -0500 Subject: [PATCH 2/3] Update precognition.md --- precognition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/precognition.md b/precognition.md index d9aedd9e820..9184e9ae4b2 100644 --- a/precognition.md +++ b/precognition.md @@ -163,7 +163,7 @@ const submit = () => form.submit() }); ``` -You may determine if a submission request is in-flight by checking the form's `processing` property: +You may determine if a form submission request is in-flight by inspecting the form's `processing` property: ```html