form is populating with errors but errors.status logging as 'clean'
here's the form schema, it's somewhat complicated, but it's super strange to me that it'd be showing as clean even though there's error messages present
11 Replies
exotic-emeraldOP•2mo ago
when i set
amount
to any value that's not sum(splits.amount), i should be getting an error on the splits.amount checks
i even do, i can see in the logs, i just get more or less
{ status: 'clean', message: '...' }
correct-apricot•2mo ago
what is this
status
state you're referring to? How is this schema implemented in the form?
tanstack form doesn't check for status: "clean"
or the like, it checks for truthy values. This means that returning successful parses will be considered an errorexotic-emeraldOP•2mo ago
I believe it’s just on the standard schema v1 type? I was dealing with this property in valibot and now in effect schema
In valibot it seemed to reflect if it was actually errored in the form, not the case in effect schema right now
correct-apricot•2mo ago
hmmm … so the code above is effect schema?
I‘ll tinker with it on my end later this evening, see if I can replicate it
exotic-emeraldOP•2mo ago
Yea it’s effect schema
correct-apricot•2mo ago
looks like effect schema expects some parsing if you want to use it like a standard schema. Did you make sure to do that before using it?
correct-apricot•2mo ago
exotic-emeraldOP•2mo ago
Yea I am, there's a type mismatch when passing to the form instance if you don't convert it
correct-apricot•2mo ago
can you share the logged value of
ctx.formApi.parseValuesWithSchema(Standard)
?exotic-emeraldOP•2mo ago

exotic-emeraldOP•2mo ago
this is how i'm getting the errors to render in the component, something about the metas?