Why does Vue not allow deep-watching of HTML elements? #7694
Unanswered
erimcg
asked this question in
Help/Questions
Replies: 1 comment
-
Because HTML elements may contain many attributes, proxy them will cause page congestion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The Vue documentation (Template refs # Accessing the refs) shows that you can use the
ref
attribute on an input element.The
watchEffect
callback is triggered when the input element is loaded in the DOM, however it is not triggered when the user enters text in the input; even if you pass{deep: true}
towatchEffect
.Is there a reason Vue does not deep watch an HTML element?
Beta Was this translation helpful? Give feedback.
All reactions