You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does not update/trigger a re-render of the slot
Comment
Maybe this is expected, because I think in Vue3 $attrs is not actually a reactive object but just a proxy, thus this is why it is not triggering update. However, coming from Vue 2 where this was a reactive object, it is confusing that it is not anymore and is probably going to break some components.
I wonder then if there is an official recommendation when dealing with this kind of use-case.
The text was updated successfully, but these errors were encountered:
AlexandreBonaventure
changed the title
$attrs are triggering render update when inside slots
$attrs are not triggering render update when inside slots
Jun 11, 2020
Version
3.0.0-beta.14
Reproduction link
https://jsfiddle.net/Lvo5aks1/
Steps to reproduce
Rendering
$attrs
inside a wrapper component (with default slot).It does not seem to be collected as a reactive dependency.
What is expected?
$attrs
should be reactive like any other reactive objectsee here https://jsfiddle.net/tpewsd71/
What is actually happening?
It does not update/trigger a re-render of the slot
Comment
Maybe this is expected, because I think in Vue3 $attrs is not actually a reactive object but just a proxy, thus this is why it is not triggering update. However, coming from Vue 2 where this was a reactive object, it is confusing that it is not anymore and is probably going to break some components.
I wonder then if there is an official recommendation when dealing with this kind of use-case.
The text was updated successfully, but these errors were encountered: