Skip to content

Wrong Initial Value of meta.valid provided with validation schema on initial page load #4855

Description

@OsamaHaikal

What happened?

In Nuxt, the initial value of meta.valid is true while we are providing a validation schema with no hydration errors

Screenshots

Screencast.from.2024-09-05.09-51-44.mp4

Reproduction steps

  1. add useForm with one field
  2. add validation schema to this field
  3. refresh the page and observe the initial state of button

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

form.meta.value.valid true
form.meta.value.valid false

No response

Demo link

https://stackblitz.com/edit/nuxt-starter-t3btfg?file=app.vue

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions