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(compiler-sfc): deconstruction props error repair (#8017) #8022

Closed

Conversation

baiwusanyu-c
Copy link
Member

close: #8017

@baiwusanyu-c baiwusanyu-c requested a review from sxzz April 4, 2023 07:20
@sxzz sxzz added the ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. label Apr 4, 2023
@yyx990803
Copy link
Member

Thanks for the PR, the code actually already contains logic to check if the binding is a prop. Your fix isn't technically correct since it doesn't account for nested scope variables shadowing destructured props. See f3145a9 (I reused the test from your PR)

@yyx990803 yyx990803 closed this Apr 4, 2023
@baiwusanyu-c baiwusanyu-c deleted the bwsy/fix/componentPropsDestructure branch April 4, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[@vue/compiler-sfc] "xxx" is a destructured prop and should not be passed directly to watch()
3 participants