Unexpected Error with Schema and react-hook-form: 'Expected undefined, actual 123456'
Hi all. I'm trying to use Schema with react-hook-form, but I'm getting a weird result for when the field has an error. For some reason I'm getting "Expected undefined, actual 123456" in my view when using
Schema.UndefinedOr(Schema.String.pipe(Schema.maxLength(5))). The example code is here: https://effect.website/play#4196fbc182dc