Using v-bind object syntax causes passing unwrapped Ref(ComputedRef) props to child component. #10546
-
I encountered the following behavior of vue 3.4.21.
I have tried to debug then I understand that using If this is designed behavior, I should update type of the 'name' prop to MaybeRef and same for all of custom component. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
In the template, only top-level refs are unwrapped. Refa newted in plain objects are not. You can make it a reactive object to get unwrapping |
Beta Was this translation helpful? Give feedback.
In the template, only top-level refs are unwrapped.
Refa newted in plain objects are not. You can make it a reactive object to get unwrapping