question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RC 1 release notes for field flags

See original GitHub issue

So 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
logaretmcommented, May 16, 2017

@twify93 I have added the null as the initial value for the valid and invalid 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.

1reaction
logaretmcommented, May 9, 2017

I see, Null is a good value for undetermined status.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found