You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am updating my project's codebase after quite some time: react-hook-form: From ^7.55.0 to ^7.61.1 @hookform/resolvers: From ^5.2.0 to ^3.10.0
I was getting some weird errors regarding the zodResolver. After doing some research, I now know that we do not need to explicitly pass input types to useForm as the latest version can infer it automatically.
I removed the explicit type being passed but now I am seeing one particular value's type as optional. I am attaching the code snippet as screenshot as I want to show the input type of the props.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am updating my project's codebase after quite some time:
react-hook-form
: From^7.55.0
to^7.61.1
@hookform/resolvers
: From^5.2.0
to^3.10.0
I was getting some weird errors regarding the
zodResolver
. After doing some research, I now know that we do not need to explicitly pass input types touseForm
as the latest version can infer it automatically.I removed the explicit type being passed but now I am seeing one particular value's type as optional. I am attaching the code snippet as screenshot as I want to show the input type of the props.
Am I doing something incorrectly?
Beta Was this translation helpful? Give feedback.
All reactions