The Wayback Machine - https://web.archive.org/web/20220718112358/https://github.com/vuejs/vue/issues/12675
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

[2.7.7] Array of template refs are not watchable #12675

Open
stevebauman opened this issue Jul 16, 2022 · 0 comments
Open

[2.7.7] Array of template refs are not watchable #12675

stevebauman opened this issue Jul 16, 2022 · 0 comments

Comments

@stevebauman
Copy link

@stevebauman stevebauman commented Jul 16, 2022

Version

2.7.7

Reproduction link

codesandbox.io

Steps to reproduce

Create a const els = ref([]) to store an array of HTML elements in a v-for. Attempt to watch(els). Nothing happens.

This worked in 2.6.*.

What is expected?

The watcher function should fire anytime the ref has changed with new elements added in a v-for.

What is actually happening?

The watcher function is not firing.

@stevebauman stevebauman changed the title Array of template refs are not watchable [2.7.7] Array of template refs are not watchable Jul 16, 2022
@stevebauman stevebauman changed the title [2.7.7] Array of template refs are not watchable [2.7.7] Array of template refs are not watchable Jul 16, 2022
@stevebauman stevebauman changed the title [2.7.7] Array of template refs are not watchable [2.7.7] Array of template refs (ref([])) are not watchable Jul 16, 2022
@stevebauman stevebauman changed the title [2.7.7] Array of template refs (ref([])) are not watchable [2.7.7] Array of template refs are not watchable Jul 16, 2022
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

1 participant