Null $params issue
See original GitHub issueHi, it seems that I am unable to port customized validators to an external library. For instance, if I have this in a js file
export const myRequired = label =>
helpers.withParams(
{ ‘errMessage’: ${label} is required
},
required,
);
I can create an parameterized validator without problem. For example, with
validations: { email: {required: myRequired(‘Email’) }
I can check that the this.$v.email.$params.required is an Object with property $sub and errMessage.
However, if I put myRequired in an external library, (i.e., not in the same project), then, the this.$v.email.$params.required is always null.
I wonder if this is a bug or there is something that I did wrong?
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Param types without null? · Issue #165 · pbeshai/use-query ...
I'm guessing (based on the docs) that the purpose of this is to allow people to pass &foo and it getting parsed rather...
Read more >Null parameter issue - Discuss and Get Help | FlutterFlow
I am using a parameter to pass the record from one page to another, but the parameter is null at the start, so...
Read more >How do I make my parameter work when it is a null value?
When the parameter has no value, SQL interprets it as null in your code. Null means no value. You can fix this problem...
Read more >Null Parameter Values - IBM
Test for null parameter variables in your command list and provide default values to avoid possible syntax errors. Parent topic: Variables.
Read more >Issue with Paginated Report Optional Parameters (Allow Null ...
I have a paginated report with multiple parameters that allow null values. When I publish the report and try to run it, all...
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
My problem was that
validators.min.js
were imported beforevuelidate.min.js
. There was no error or warning of any type, it was just that $params didn’t work.This info might help: https://github.com/vuelidate/vuelidate/issues/874#issuecomment-1047694987