Please provide form state from useForm #5201
-
I chose to use form hooks from mantine to develop forms(I am using mantine components for ui development) and to my surprise(!) it doesn't return any info about form state. It does return isDirty and isTouched, but what about other form states? form submit(after validation passed) is usually an asynchronous operation(involving an http request mostly) and meanwhile, you want to show loading state in your UI, disable submit button(with a progress bar inside) while your form is being submitted. This is a very common and known use case for form libraries, why don't you expose such state from the hook? This is form states exposed from |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
yeah i need isSubmitting and isLoading as well. that has become a necessity for daily job on building forms :/ |
Beta Was this translation helpful? Give feedback.
-
No news? |
Beta Was this translation helpful? Give feedback.
https://mantine.dev/form/status/#submitting-state