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: expose props on vm for script setup components #1864

merged 1 commit into from Nov 15, 2022


Copy link

Fixes #1863

It turns out vm is not enough, and we need to proxy to vm.$.ctx which contains the props as well.

Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit 905c32e
🔍 Latest deploy log
😎 Deploy Preview
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Fixes vuejs#1863

It turns out `vm` is not enough, and we need to proxy to `vm.$.ctx` which contains the props as well.
@cexbrayat cexbrayat force-pushed the fix/1863-script-setup-props branch from e45401c to 905c32e Compare Nov 15, 2022
@cexbrayat cexbrayat merged commit bf1fbe9 into vuejs:main Nov 15, 2022
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

Bug: wrapper.vm does not contain props when using script setup syntax with Vue 3.2.45 and VTU 2.2.2
1 participant