RC 1 release notes for field flags
See original GitHub issueSo I was reading the release notes and saw this:
invalid -The field has been validated at least once and is not valid.
At least once, but that’s not correct, because when I don’t use v-validate.initial
, the invalid=false
and also valid=false
I feel like there is some inconsistency here. How is that invalid
and valid
are both false even though it says that the field should be validated at least once?
It’s either implementation issue or a bad naming here.
The flags that I get initially without the ‘.initial’ are:
{ "untouched": true, "touched": false, "dirty": false, "pristine": true, "valid": false, "invalid": false }
Which for me is confusing. Because you can use valid
in one place and invalid
on another and get totally different result.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
GROMACS 2018.6 release notes — GROMACS 2022-rc1 ...
This version was released on February 22, 2019. These release notes document the changes that have taken place in GROMACS since version 2018.5, ......
Read more >Version 6.2.0 RC 1 Release Notes - WHMCS Documentation
Version 6.2.0 RC 1 Release Notes ... WHMCS has always passed a default parameter flag for the feature list and as a result...
Read more >Gradle 6.6-rc-1 Release Notes
The Gradle team is excited to announce Gradle 6.6-rc-1. This release introduces a major performance optimization as an experimental opt-in. Configuration ...
Read more >Releases · facebook/relay - GitHub
Relay is a JavaScript framework for building data-driven React applications. - Releases · facebook/relay.
Read more >OSCAL Release Notes - NIST Pages
The following changes were made in OSCAL 1.0.0 Release Candidate (RC) 2 since OSCAL 1.0.0 RC 1. Simplification of key OSCAL features.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@twify93 I have added the null as the initial value for the
valid
andinvalid
flags, regarding the verbose conditions, the previous method API was somewhat neat but the flags wasn’t reactive meaning it caused a limited usage in computed props which was a critical thing to have. also there were a lot of inconsistencies between the flag behavior and the actual state of the input, so they had to be revised.You can construct your own helpers for this, basically
passes
means that the field is dirty and is valid, so you can do that in your computed props, or use the included fieldsGetter which reduces the amount of conditions you have to write.I might add the previous methods API via a similar helper. still have few more ways to improve this.
I see, Null is a good value for undetermined status.