You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added validations.onChangeStrategy config option. This option allows to set on-change behavior of inputs. 'onAnyError' value, which is default one, will validate inputs only if there is any error present on the form. On other hand, 'onAfterValidate' value will validate inputs if validate form helper has been called. 'none' strategy allows to avoid on-change validation entirely. Note, however, that input error will still be cleared when it's changed.
Added 'validations.<input>.partialDeps config option for usePartial hook. It is similar to deps, but will prefix each value with partial's prefix to make things less verbose.
Improvements
Upon validation, form's errors object no longer contains falsy values (i.e. only keys with actual errors will be present). Improvement suggested by @MrFreemind
Fixes
When setting a collection of items via set helper, when each of this items is represented with it's own validations defined via dynamic config or usePartial hook, additional check has been added to avoid validation of about-to-go-away items. This validation exists on set phase because items with their validation setup will only go away after next render and all related effect. Issue reported by @MrFreemind