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(runtime-core): instanceWatch should pass this.proxy to source as the first argument #2753

Merged
merged 6 commits into from
Feb 9, 2021

Conversation

edison1105
Copy link
Member

@edison1105 edison1105 commented Dec 7, 2020

close #2731

@edison1105 edison1105 closed this Dec 7, 2020
@edison1105 edison1105 reopened this Dec 7, 2020
@edison1105 edison1105 changed the title fix(runtime-core): this is no longer passed as the first argument of this.$watch fix(runtime-core): instanceWatch call with this.proxy Dec 7, 2020
Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

Can you add tests?

@edison1105 edison1105 changed the title fix(runtime-core): instanceWatch call with this.proxy fix(runtime-core): instanceWatch should pass this.proxy to source Dec 7, 2020
@edison1105 edison1105 changed the title fix(runtime-core): instanceWatch should pass this.proxy to source fix(runtime-core): instanceWatch should pass this.proxy to source as the first argument Dec 7, 2020
@edison1105
Copy link
Member Author

Can you add tests?

Done!

@edison1105 edison1105 requested a review from posva December 7, 2020 14:31
@LongTengDao
Copy link
Contributor

@posva Hi~ I saw this PR was not released in 3.0.5. Is here any problem left? Will this be merged in 3.0.6? Thanks~

@yangmingshan
Copy link
Contributor

yangmingshan commented Apr 14, 2021

So this PR pass this.proxy to this.$watch() and composition API watch(), but we shouldn't leak this.proxy to setup() right?

@edison1105
Copy link
Member Author

So this PR pass this.proxy to this.$watch() and composition API watch(), but we shouldn't leak this.proxy to setup() right?

oh, my fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. 🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

this is no longer passed for the first argument of this.$watch
5 participants