issue: submitValues is of type undefined unless strictNullChecks is true, or explicit use of TTransformedValues #10754
Unanswered
anthony-tron
asked this question in
Q&A
Replies: 1 comment
-
Additionally, I don't understand what the 3rd parameter |
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.
-
Version Number
7.44.3
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/determined-haze-c93dmv?welcome=true
Steps to reproduce
submitValues
is of typeundefined
(why?)Workarounds I come up with:
strictNullChecks
totrue
submitValues
is of typeFormValues
However, on some big projects, one cannot simply turn on
strictNullChecks
.strickNullChecks
back tofalse
useForm
call touseForm<FormValues, any, FormValues>({
submitValues
is of typeFormValues
againOther fix:
9. Revert to previous of useForm:
useForm<FormValues>({
10. Downgrade to react-hook-form 7.43.9
11. See that
submitValues
is of typeFormValues
againExpected behaviour
submitValues
should be of typeFormValues
, however it is of typeundefined
.What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions