Issue with Schema.Option(Schema.String) and react-hook-form
Hello
I've a weird behavior when trying to use
At this point everything is OK (typescript types matches) and when I do
The problem is when I submit the form.
Validation fails with message:
I don't know really what is missing and more generally how I can use Option instead of
Schema.Option(Schema.String) when using react-hook-form (effect resolver)At this point everything is OK (typescript types matches) and when I do
form.getValues(), selectedFile looks great: { _tag: "Some", ...}The problem is when I submit the form.
Validation fails with message:
_tag : {message: 'is missing', type: 'Missing', ref: undefined}I don't know really what is missing and more generally how I can use Option instead of
T | undefined in a form with use-hook-form an effect ?