Why is the responsive api of vue3 Primitive values not implemented using wrapper classes? #9204
Answered
by
mbokil
hdliyu
asked this question in
Help/Questions
-
Why is the responsive api of vue3 Primitive values not implemented using wrapper classes? |
Beta Was this translation helpful? Give feedback.
Answered by
mbokil
Sep 14, 2023
Replies: 1 comment 3 replies
-
use ref() for primitives and reactive() for objects. https://vuejs.org/guide/essentials/reactivity-fundamentals.html#ref |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I thought the implementation was designed the way it is to separate off primitives for performance reasons but sometimes I wish the DX was a little better. I find myself explaining the problem with junior devs a lot.