Handling defaultValues for a required number field
I have a required amount field that should be a number. If I use z.number(), I run into the default value issue—I don’t want 0 (bad UX), "" isn’t assignable to number, and undefined causes React’s controlled/uncontrolled warning.
Would it be better to keep it as a string (""), then parse it before submission? Or is there a cleaner approach?