Repository navigation
Conversation
🦋 Changeset detectedLatest commit: aba2668 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
- await expect calls
|
I'm 👎 on this change, personally — I don't see this... myform.fields.foo.isValid()...as a particularly meaningful improvement over this: !myform.fields.foo.issues()It's additional surface area that doesn't add any new capability, and it's not 100% obvious whether it's the opposite of
|
|
@Rich-Harris I get your point, then let's see what others think then. Any other feedback on how to improve this are welcome. Thanks. PS: One personal, not technical, reason why I suggest this is I found myself instinctively try to look for a |
|
Agree with Rich that we don’t need this. If anything, we should just document this pattern explicitly. I checked the documentation and there isn’t an example with ! .allIssues() |
closes #16032
Goal
Adds a
isValidproperty to remote form and fields. This makes it easier to dynamically react to the validity of the fields and the form with less boilerplate.Reason for this feature
It requires some boilerplate to check if a form is valid:
Or for a field
Changes made
isValidproperty inRemoteForm. Defaults totrue. Refresh whenvalidateis called.isValidproperty in the fields proxy (viacreate_field_proxy), enables users to check if a group of fields are valid easily.Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.Edits