issue: useWatch with control
sets Typescript property types as nested Partial
#9400
Closed
1 task done
Version Number
7.39.4
Codesandbox/Expo snack
https://codesandbox.io/s/usewatch-typescript-type-error-qjcmqo?file=/src/App.tsx:1065-1101
Steps to reproduce
useForm
with generic form type defining concrete form value types (i.e. form values are notundefined
)useWatch
withcontrol
provided by return ofuseForm
useWatch
appear as a nested Partial type (see line 51 of Codesandbox example)Expected behaviour
Typescript form type defined as such with configured
useForm
anduseWatch
and IDE should properly represent type as non-nested Partial when utilizing
useWatch
.What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: