What does conformZodMessage.VALIDATION_SKIPPED
do that isn't achieved by returning early from the function?
#740
james-tindal
started this conversation in
General
Replies: 1 comment
-
Since the zod schema will always validate the whole form data even though you are just typing on a particular field. The message tells Conform that it is safe to use the previous error instead of running some expensive validation again. If you return early, zod will simply say the field is valid even though it might not. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What does
conformZodMessage.VALIDATION_SKIPPED
do that isn't achieved by returning early from the function?Beta Was this translation helpful? Give feedback.
All reactions