Activate onChange validation only after submitting once?
this doesn't seem to work
3 Replies
ratty-blush•5mo ago
this is assigned once on mount, in which case it's always going to be
false
.
you'll have to manually write the login schema safeParse
if you want it to act conditionallyflat-fuchsiaOP•5mo ago
is there a way to achieve the same StandardSchema behaviour conditionally?
As in not having to manually return the error object?
I got it to work but it seems hacky
I think there should be a better example of using
standardSchemaValidators
I might make a PR for the exampleequal-aqua•5mo ago
Why do you want to do that?
Maybe you could just show the errors conditionally (submissionAttempts > 1)?