You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in this line parse is used. This will throw an error on the first encounter of a parsing error. This leads to a iterative process on user input like fixing one error, validation passes that field and might run into the next error. safeParse returns some more informations, success, errors, data so in that case my perception is, if there are errors they are collected in errors while success will be false this would help to eliminate multiple validation passes for the user if he can see all error at once.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
vee-validate/packages/zod/src/index.ts
Line 46 in 6e35315
in this line
parse
is used. This will throw an error on the first encounter of a parsing error. This leads to a iterative process on user input like fixing one error, validation passes that field and might run into the next error.safeParse
returns some more informations,success
,errors
,data
so in that case my perception is, if there are errors they are collected inerrors
whilesuccess
will befalse
this would help to eliminate multiple validation passes for the user if he can see all error at once.Beta Was this translation helpful? Give feedback.
All reactions