Skip to content
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

why deep property change will trigger a shallowReactive object`s denpendencies? #2846

Closed
lijingfaatcumt opened this issue Dec 18, 2020 · 1 comment

Comments

@lijingfaatcumt
Copy link

Version

3.0.4

Reproduction link

https://jsfiddle.net/rxpcL210/1/

Steps to reproduce

const origin = { a: {b: 2}};
const reactiveProxy = reactive(origin);
const shallowProxy = shallowReactive(origin);
watchEffect(() => {
console.log('shallow', shallowProxy.a.b)
})
watchEffect(() => {
console.log('reactive', reactiveProxy.a.b)
})
window.s = shallowProxy
s.a.b

What is expected?

s.a.b change do not trigger dependencies

What is actually happening?

s.a.b change trigger dependencies

@LinusBorg
Copy link
Member

tracked in #2843

@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants