Activate onChange validation only after submitting once?
this doesn't seem to work
3 Replies
like-gold•8mo 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 conditionallyharsh-harlequinOP•8mo 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 examplesensitive-blue•8mo ago
Why do you want to do that?
Maybe you could just show the errors conditionally (submissionAttempts > 1)?