Closed jbolda closed 1 year ago
Latest commit: dd62c62ff9dfc7aa8aeabda1753834489116546c
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
📣 NOTIFICATION You are receiving this message because we did not publish any packages.
Generated by @thefrontside/actions
Motivation
Validation was running for every piece for
formData
regardless of the step. This led to some confusing errors especially if the user went back and forth in the form.Additionally, when using a
type: 'object'
, the async validation would not run at the root.Approach
Wrote some tests for this hook, then checked each output. We reordered the conditions so object is handled first, and included handling the validation at the root.