Set errors programmatically
- ✅ create
setErrors()
function to allow setting errors from outside Enfrom.
This feature should cover use cases where errors need to be set as a result on non user input. Fx. calling an API that returns field specific error. - 🔨 Do not call
setErrors()
internally if error is not present for a field when usingonChange()
.