Is that possible to infer form value from SubmitHandler instead of defining it ourselves? #13031
Unanswered
mattchannn
asked this question in
Q&A
Replies: 0 comments
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.
-
export type SubmitHandler<T> = (data: T, event?: React.BaseSyntheticEvent) => unknown | Promise<unknown>
Looks like every time we want to submit we'll need to provide our own FormValue instead of using those properties we registered using
register
method.Would react-hook-form be intelligent enough to provide an inferred type for us to use just like the
RootState
that Redux provides?Beta Was this translation helpful? Give feedback.
All reactions