FollowUp: #10293 should'nt the return type of customRef
be ShallowRef
instead of Ref
?
#12739
Unanswered
OrbisK
asked this question in
Help/Questions
Replies: 1 comment
-
From the two custom Ref objects printed, it can be seen that the basic data type uses getter/setter to modify data and updates the view using the trigger() method in dep, while the reference data type does not have proxy proxy and does not have deep listening; You can also refer to the source code implementation for details➡️ https://github.com/vuejs/core/blob/main/packages/reactivity/src/ref.ts#L290 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reference: #10293
If the returned ref is'nt deeply reactive the return type should be
ShallowRef
right?Beta Was this translation helpful? Give feedback.
All reactions