Replies: 1 comment
-
Sorry for the late reply. You cannot control it at the moment but it should work as expected as long as all those async operations are awaited within the handle submit callback. Generally, you should do it manually if it is not working at all for you. If you are not awaiting them then it would behave as you described. If you can add a sample with this issue I could point it out or figure out if there is a bug there somewhere. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'd like to take advantage of the
Form
component'sisSubmitting
slot prop state as described in the docs. But my@submit
handler has some logic that calls other async methods depending on the component's state. Those other async methods actually submit the form contents, not my@submit
handler.In this case,
isSubmitting
briefly turns totrue
but instantly back tofalse
, since the async operations are happening in other methods.Is there a way to regain control of
isSubmitting
so I can use it for convenience to control the form state while my data is being posted?Beta Was this translation helpful? Give feedback.
All reactions