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
This is a weird behavior, I might have a form with all fields required, but some of them pre-populated by an api if the user meets certain conditions. Now the only possible solution is to cast as any or as T
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.
-
The type of
DefaultValues
is aDeepPartial<T>
I'm expecting to have the theAsyncDefaultValues<T>
to be() => Promise<DefaultValues<T>>
react-hook-form/src/types/form.ts
Lines 48 to 51 in 79964dc
This is a weird behavior, I might have a form with all fields required, but some of them pre-populated by an api if the user meets certain conditions. Now the only possible solution is to cast
as any
oras T
Beta Was this translation helpful? Give feedback.
All reactions