-
Hello, I a have a problem with I described the problem with more details here: https://stackoverflow.com/questions/73110407/vee-validate-and-zod-not-validating-the-form-in-nuxt3-project i don't understand what is happening here |
Beta Was this translation helpful? Give feedback.
Answered by
logaretm
Jul 26, 2022
Replies: 1 comment 1 reply
-
The order of calling const { handleSubmit, errors } = useForm({
validationSchema,
});
const { errorMessage, meta, value: firstName } = useField('firstName'); This is not a recommended way to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
melokki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The order of calling
useField
anduseForm
is important.This is not a recommended way to use
useField
as it is meant to create input components. But if you do use it like that then you need to make sure the form is created first.