Dobromir Hristov

Results 166 comments of Dobromir Hristov

Hey there, sorry for the confusion. Yes the docs need some love. As for your question, think of it like this. Your state can now be kept in the parent...

Don't use the helper, use child components. Sorry that helper was just to help with very simple scenarios

Check the Validating Collections docs. You don't need composition api for this. In a nutshell each item in your array that you are validating would be a component. You can...

The parent automatically has access to child validation states, if they just call useVuelidate. You would have to move your rules to the child component. The state can be in...

To be honest I just wrote an async validator and it works pretty alright :/ No infinite loops or anything.

I suspect it may be connected to the way Vue-test-utils makes vue fully sync. This may be conflicting with Vuelidate's internals. Alas I dont have a workaround for now.

Inside validators, "this" is the component instance, I guess that could help?

Yeah... at this point I would make `customFunction` a higher order func, and pass it what is necessary form the vue instance as a parameter, what you have shown above...

Buddy at 8 levels, simplicity went down hill long ago 😁 BTW Vuelidate 2 removes $each, so please follow the progress, so we can get your personal experience and input...