Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of Vue life cycle and nextTick() #2361

Closed
juhasev opened this issue Sep 21, 2019 · 1 comment
Closed

Documentation of Vue life cycle and nextTick() #2361

juhasev opened this issue Sep 21, 2019 · 1 comment
Labels
📚 docs documentation related

Comments

@juhasev
Copy link

juhasev commented Sep 21, 2019

Versions

  • vee-validate: 3.x
  • vue: 2 (latest)

Describe the bug
Because the validation observer is now a rendered component it would be good idea to add to the documentation how to use this.$nextTick() and clearly explain basic things like this.$refs are not yet available in some life cycle hooks like mounted(). I converted a large application from Vee-validate 2 and these were constant issues completely absent from the documentation.

To reproduce
Create any complex validation scenario with dynamic components.

Desktop (please complete the following information):

  • OS: Mac OS Mojave
  • Browser: Chrome (latest),
@juhasev juhasev changed the title Documentation Documentation of Vue life cycle and nextTick() Sep 21, 2019
@logaretm
Copy link
Owner

logaretm commented Sep 21, 2019

$refs being absent before mounting is not a vee-validate issue. It is more of standard Vue behavior. Having said that I will add a note on it since it doesn't hurt.

What do you mean about using the $nextTick?

@logaretm logaretm added the 📚 docs documentation related label Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 docs documentation related
Projects
None yet
Development

No branches or pull requests

2 participants