Add toShallowRef function #506
Replies: 3 comments 1 reply
-
Hey there! 👋🏻 I believe we should also add |
Beta Was this translation helpful? Give feedback.
-
@RomainLanz The purpose of |
Beta Was this translation helpful? Give feedback.
-
We should have this. But as I see the implementation in vuejs/core#8530 lacks an answer for An intuitive API for making refs out of props, i.e So it should allow parameters of |
Beta Was this translation helpful? Give feedback.
-
add toShallowRef equivalent to
toRef()
. This would be useful should one want to obtain a ref to a third-party object, without worrying aboutref()
unwrapping.PR
expected:
Beta Was this translation helpful? Give feedback.
All reactions