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
other-emeraldOP•2w 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: '...' }
robust-apricot•2w 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 errorother-emeraldOP•2w 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
robust-apricot•2w 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
other-emeraldOP•2w ago
Yea it’s effect schema
robust-apricot•2w 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?
robust-apricot•2w ago
other-emeraldOP•2w ago
Yea I am, there's a type mismatch when passing to the form instance if you don't convert it
robust-apricot•2w ago
can you share the logged value of
ctx.formApi.parseValuesWithSchema(Standard)
?other-emeraldOP•2w ago

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