You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #12224 on August 31, 2024 03:27.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.53.0
Codesandbox/Expo snack
https://codesandbox.io/s/nice-bogdan-73r5jr?file=/src/App.tsx
Steps to reproduce
mode: "onSubmit"
andreValidateMode: "onSubmit"
onSubmit
function throughhandleSubmit
, which waits for a bit and then adds an error to the form=> The error disappears every time while the asynchronous part of
onSubmit
is runningExpected behaviour
The error stays visible until the
onSubmit
has fully completed and only disappears if no errors are added during theonSubmit
. The documentation saysIf we have a synchronous function, it seems to work as expected, the error disappears as soon as a line containing an
await
is hit.What browsers are you seeing the problem on?
Firefox, Chrome
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions