Complex object Select field, no reasonable defaultValue, and validation
I've got a "Create equipment" form. It's got 2 required selections, which will determine relations with other data. There's a "model" for selecting the equipment model relation, and a "customer" for selecting the customer who owns this instance of that model.
Both of the selectors result in field values that are complex object.
The
All of this mostly accomplishes what I want, but it leaves me with a Typescript error on the
I'm not sure whether my issue has more to do with failing to understand my requirements, or how to apply Zod to those, or how to combine the Zod validator with TSF.
Both of the selectors result in field values that are complex object.
The
equipmentFormDataSchema is defined asAll of this mostly accomplishes what I want, but it leaves me with a Typescript error on the
onBlur.I'm not sure whether my issue has more to do with failing to understand my requirements, or how to apply Zod to those, or how to combine the Zod validator with TSF.