$attrs is reactive in Vue3 composition API, but the docs say they aren't. #12233
Replies: 1 comment
-
I assume you refer to this paragraph:
This is not in contradiction to what you are experiencing, though the wording could be improved I guess. The last sentence indirectly explains what you are experiencing:
To put this in more explicit terms:
So both things are correct:
Well, if a change from the parent would not reflect in the child, that would make |
Beta Was this translation helpful? Give feedback.
-
Are the docs incorrect, or is this actually an internal bug?
When we apply
$attrs.class
for example, it changes when the parent's:class
updates, which, according to the docs, shouldn't happen.We don't want to use this if it's actually a bug.
Beta Was this translation helpful? Give feedback.
All reactions