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

Child component with props only updating if the prop is used in the child's template #9352

Closed
fxdave opened this issue Jan 21, 2019 · 1 comment

Comments

@fxdave
Copy link

fxdave commented Jan 21, 2019

Version

2.5.21

Reproduction link

https://jsfiddle.net/te8kcj1u/

Steps to reproduce

Do not use props in child template, and try to catch the updated property in the child's updated hook.

What is expected?

It should catch the prop

What is actually happening?

It is not catching the prop

@posva
Copy link
Member

posva commented Jan 21, 2019

if you want to watch a prop being modified use $watch. the updated hook is when the component vdom changes (as stated in the docs)

@posva posva closed this as completed Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants