Replies: 4 comments 5 replies
-
+1, this is a peculiar case we've been repeatedly fighting in similar ways amongst our codebase |
Beta Was this translation helpful? Give feedback.
-
Sorry to tag you like this but I really didn't want to open an issue in order to get your attention and I'm pretty sure you guys are the only ones who could answer this well. |
Beta Was this translation helpful? Give feedback.
-
Please provide a codesandbox url to describe more details on your issue. The example from react-hook-form https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-forked-g399v7 shows correct type without casting or ignore anything. |
Beta Was this translation helpful? Give feedback.
-
I just ran into this too - there was an open issue describing the problem in #9919 - but it was closed as resolved despite not being resolved - was that intentional? |
Beta Was this translation helpful? Give feedback.
-
Using
useWatch<T>()
(parameterless) makes my entire codebase have to either cast the result to the non-partial value (T
) or@ts-ignore
the type in order to get my defined type instead of the deep partial one.The
watch
type from theuseFormContext
is unchanged but that always results in infinite updates when I try to use it the same way I useuseWatch
and gives me performance issues so I've moved away from using it even though the typing there is what I need.Beta Was this translation helpful? Give feedback.
All reactions