Skip to content

Best approach for child components #3402

Answered by logaretm
alperunal asked this question in Q&A
Discussion options

You must be logged in to vote

I always avoid mixing Vuex with form state for most cases. So the preferred approach would be the first one where your input components use the ValidationProvider as a wrapper inside them, while having the form parents wrapped with a ValidationObserver.

The Vuex approach would be tricky to implement since you only have access to the validation state in the template and not in your script.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alperunal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants