This also gets us part of the way toward #239 by creating a pattern for handling fetch errors. Abstracting the patterns in NewProposalFormError would be the next step to closing it.
Description
unify/simplify fetching with react-hook-forms + zod validation
Pull Request Template
This also gets us part of the way toward #239 by creating a pattern for handling fetch errors. Abstracting the patterns in
NewProposalFormError
would be the next step to closing it.Description
react-hook-forms
+zod
validationopenapi-zod-client
&zodios
string
success
property toPOST /proposals
response schemaScreenshots (if appropriate):
Please review and suggest any further insights, improvements, or modifications needed.