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.

Null $params issue

See original GitHub issue

Hi, 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:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
a-stankevichcommented, May 2, 2019

My problem was that validators.min.js were imported before vuelidate.min.js. There was no error or warning of any type, it was just that $params didn’t work.

0reactions
tada5hicommented, Feb 22, 2022
Read more comments on GitHub >

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

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