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

fix(shallowReactive): don't trigger watchers for oldVal === newVal #894

Merged
merged 2 commits into from Jan 27, 2022

Conversation

chearon
Copy link
Contributor

@chearon chearon commented Jan 25, 2022

Hi, I found another situation that's causing me infinite loops with this library but not with Vue 3

value.value = value.value
const v = value.value
value.value = !v
value.value = v
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might need some advice here... this is not ideal for sync: true watchers, but I can't call ob.notify() without making bigger changes as the reference is not retrievable from value

@antfu antfu merged commit 2a88e71 into vuejs:main Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants