question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v.4] Eager mode in vee-validate 4

See original GitHub issue

Hi fellows, I’m using vee-validate v4 with Vue3 and I have a small problem. Right now my validation works good https://codepen.io/edj56/pen/jOMmgjz But I wanna tweak it a little bit and I would like to achieve something a little bit different. When I send a form then error will appear and when I blur the input again and start typing then errors should disappear. In v3 of the plugin it was possible to achieve it (using mode="eager" flag) but here I can’t see any example how can I do that. Any ideas?

Thank you in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
lbineaucommented, Jun 11, 2021

Is your decision final? I found V3 easier to work with than V4. V4 is much more composable with composition API but require a lot of work to code components close to <Form/> or <Input/> and change only few things imo. I personally enjoyed this eager mode in V3. In V4 could it be something like a prop on <Form/> for instance? Thank you for your hard work.

5reactions
Winston-Guesscommented, Mar 10, 2022

If you’re not going to implement a crucial part of vee-validate, such as “mode”, you might as well not call it vee-validate anymore. I started migrating to v4 and used the eager mode throughout our app with v3, but to get this behavior in v4 would be far too much work and would create a ridiculous amount of repetitive or hacky code. I’m quite sad that I need to find an alternative because I’ve been using vee-validate since v2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interaction Modes - VeeValidate
Interaction modes are used by vee-validate to determine when a validation should trigger. It is used as a replacement for the events prop....
Read more >
Implementing Eager Validation with VeeValidate
Change the validation events based on the validity of the field. 0. 65.6k.
Read more >
vee-validate v4 Example - Dynamic validation triggers (forked)
Showcasing vee-validate v4 with custom validation trigger behavior. Here we re-implement the eager validation mode from previous vee-validate releases.
Read more >
How to set the vee-validate global interaction mode in nuxt?
Created a vee-validate.js file in my plugins folder like so: ... and there you can add your global settings like this for example:...
Read more >
28 - Create a Login Form in Vue 3 with Vee-Validate 4
Today we'll create a login/signup form which uses the latest version of vee-validate to validate an email address, password, and confirmed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found