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

ctx.root not available in VTU #486

Closed
lmiller1990 opened this issue Aug 21, 2020 · 3 comments
Closed

ctx.root not available in VTU #486

lmiller1990 opened this issue Aug 21, 2020 · 3 comments

Comments

@lmiller1990
Copy link
Member

lmiller1990 commented Aug 21, 2020

vuejs/vue-test-utils#1655

I am not sure if this a bug in VTU or this plugin, but for some reason things like $store and $router are not available in ctx.root when using VTU. I am not really clear on how this plugin works - any ideas why this might be happening? You CAN still get it from getCurrentInstance apparently.

Thought it might be good to open an issue here, too, in case their is an obvious fix.

@lmiller1990
Copy link
Member Author

I thought $root was a VCA thing, oops. My bad.

@jefrydco
Copy link

jefrydco commented Aug 21, 2020

Hi @lmiller1990 , what is VCA anyway?


Update

Ah nvm, VCA is Vue Composition API 😄

@lmiller1990
Copy link
Member Author

Yep I have a fix for this. Coming soon in VTU.

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

No branches or pull requests

2 participants