-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type of Readonly Ref changed #4180
Comments
The link is broken |
This is the compiler error after update from 3.1.5 to 3.2.0-beta.4
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.2.0-beta.4
Reproduction link
https://sfc.vuejs.org
Steps to reproduce
What is expected?
What is actually happening?
I'm using the
readonly
function with aRef<Object[]>
.In 3.1.5 the result of function call is a
Ref<DeepReadonly<Object[]>>
and with a simple ref likeRef<string>
the result isRef<Readonly<string>>
Since 3.2.0-beta.1 a primitive type like string the result is no more
Ref<Readonly<string>>
butDeepReadonly<Ref<string>>
and using the ref in a watch context the new / old value seems to be the ref instead of the value changed.And the object from
Ref<DeepReadonly<...>>
becameDeepReadonly<Ref<...>>
The text was updated successfully, but these errors were encountered: