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
when read a prop of a reactive object, the reactive system will reactiveobject[prop] too. and add ReactiveFlags.reactive(eg: __v_reactive) to object[prop], see. then, when next call to reactive object[prop], object[prop].__v_reactive will returned.
when this prop is __proto__, the ReactiveFlags.reactive will add to Object, then reactive all object will returen Object.__proto__.__v_reactive
Version
3.0.0-beta.7
Reproduction link
https://github.com/xinpingwang/vue-next/tree/reactive-proto
Steps to reproduce
What is expected?
all test pass
What is actually happening?
reactive.spec failed
when read a
prop
of a reactiveobject
, the reactive system will reactiveobject[prop]
too. and addReactiveFlags.reactive
(eg:__v_reactive
) toobject[prop]
, see. then, when next call to reactiveobject[prop]
,object[prop].__v_reactive
will returned.when this prop is
__proto__
, theReactiveFlags.reactive
will add to Object, then reactive all object will returenObject.__proto__.__v_reactive
this issue is caused by the new commit: refactor(reactivity): use more efficient reactive checks
solutions to solve this issue may be add
__proto__
to reactive black list or check isReactive before return.The text was updated successfully, but these errors were encountered: