We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf0a80 commit 07d01fdCopy full SHA for 07d01fd
.changeset/chatty-tools-travel.md
@@ -0,0 +1,5 @@
1
+---
2
+"vee-validate": patch
3
4
+
5
+fix: re-apply errors to avoid race conditions
packages/vee-validate/src/useForm.ts
@@ -436,6 +436,23 @@ export function useForm<
436
results.values = formResult.values;
437
}
438
439
+ keysOf(results.results).forEach(path => {
440
+ const pathState = findPathState(path);
441
+ if (!pathState) {
442
+ return;
443
+ }
444
445
+ if (mode === 'silent') {
446
447
448
449
+ if (mode === 'validated-only' && !pathState.validated) {
450
451
452
453
+ setFieldError(pathState, results.results[path]?.errors);
454
+ });
455
456
return results;
457
},
458
);
0 commit comments