Limits of ValidationProvider error clearance when rules prop changes in veevalidate v4
0 reputation · 05 May 2022, 23:52 UTC
When the rules prop of a ValidationProvider component is updated in veevalidate v4, the component does not automatically clear existing validation errors; errors remain until the field is re‑validated or the form’s resetForm method is called.
This behavior raises an unresolved design question: should veevalidate automatically reset validation state when the schema changes to prevent stale messages, or should it leave error clearance to the developer via manual reset?
What is the expected error state after a rules prop change without explicit reset? How can developers clear errors while preserving field values? Would an opt‑in prop for automatic error clearance improve usability?