Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Backend validation flicker #837
I've created a custom rule to check whether an email is available. The problem is that when the custom rule is validated, a small flicker occurs because of calling the API endpoint.
I'm wondering if it is possible to somehow not discard the error before the API roundtrip is complete. Right now it seems that the error is cleared and re-rendered only after the API call returns.
Steps To Reproduce:
The example at the end of http://vee-validate.logaretm.com/examples.html#backend-example illustrates the problem.
@motatoes Greetings motatoes, the issue hasn't been resolved yet. The example was just fixed to avoid the issue for now. this is not a bug, just a simple side effect (bug?
Basically the problem occurs before validating the field here
we want to move the error removal just before the new errors are populated by the
Thanks for your reply @logaretm
Could you please tell me how I can reproduce the flickering locally? I just want to produce it locally to understand what's going on and attempt your suggested fix from there. Thanks