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
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.
-
Hi,
I have a question to reusable control which using react-hook-form with yup resolver validator.
Example:
I have schema A with
type A = {
pickupDate: string;
dropOffDate: string;
orderMethod: string;
weight: number;
}
and i have component using this control with 3 fields 'pickupDate' | 'dropoffDate' | 'orderMethod' from Type A
now,
type B = {
pickupDate: string;
dropOffDate: string;
orderMethod: string;
quantity: number;
}
how i can using it for my component? Because when i passed control extract type from B, it's not recognized. :(
Tks everyone.
Beta Was this translation helpful? Give feedback.
All reactions