Chris Kaminski

Results 3 comments of Chris Kaminski

From looking at the source in `createFormControl.ts` this seems to be because the `onValid` callback is called after an await point: https://github.com/react-hook-form/react-hook-form/blob/f4577b7d79810b6631d4f665ae7acbea5c90d00f/src/logic/createFormControl.ts#L1055 So the `onSubmit` handler will be suspended before...

> hey, @c-t-k we do support async callback within the `handleSubmit`, eg post a request. It's async by default. I will fix the type description in the doc. @bluebill1049 I...

@bluebill1049 yeah, this is the workaround I've been using: ```tsx { e.stopPropagation(); form.handleSubmit(onSubmitCallback)(e) })} /> ``` I don't have a proposed fix, it seems to be a problem w/ the...