You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collections should respect the shallow-ness and not covert objects added to the collection to reactive objects.
What is actually happening?
Objects added to collections are being converted to reactive objects despite the collection being created with shallowReactive
I am using the @vue/reactivity package in another project and came across this issue. Looking through the source it seems like this is not even a feature of collections at the moment as the object is always wrapped by either toReadonly or toReactive. My use case is I want to mainly track the changes to the collection itself, adding, setting, deleting without converting the objects within.
The text was updated successfully, but these errors were encountered:
Version
3.0.0-beta.13
Reproduction link
https://jsfiddle.net/exp6b1Lj/2/
Steps to reproduce
shallowReactive(new Set())
What is expected?
Collections should respect the shallow-ness and not covert objects added to the collection to reactive objects.
What is actually happening?
Objects added to collections are being converted to reactive objects despite the collection being created with
shallowReactive
I am using the
@vue/reactivity
package in another project and came across this issue. Looking through the source it seems like this is not even a feature of collections at the moment as the object is always wrapped by eithertoReadonly
ortoReactive
. My use case is I want to mainly track the changes to the collection itself, adding, setting, deleting without converting the objects within.The text was updated successfully, but these errors were encountered: