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
conscious-sapphireOP•4mo 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: '...' }national-gold•4mo 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 errorconscious-sapphireOP•4mo 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
national-gold•4mo 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
conscious-sapphireOP•4mo ago
Yea it’s effect schema
national-gold•4mo 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?
national-gold•4mo ago
conscious-sapphireOP•4mo ago
Yea I am, there's a type mismatch when passing to the form instance if you don't convert it
national-gold•4mo ago
can you share the logged value of
ctx.formApi.parseValuesWithSchema(Standard)?conscious-sapphireOP•4mo ago

conscious-sapphireOP•4mo ago
this is how i'm getting the errors to render in the component, something about the metas?