You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More info about this issue: it turns out that getCurrentInstance() is still set during router.beforeEach() which I don't know if it's expected.
The real problem comes from the inject() function checking on the currentInstance.$parent when the currentInstance is actually the root and therefore gives out undefine
d
So either the currentInstance should be undefined or it should reach out for the $root if there is no $parent but I don't know which one is the good fix so I didn't submit the PR
The real problem comes from the inject() function checking on the currentInstance.$parent when the currentInstance is actually the root and therefore gives out undefined
This causes the issue still reproduces when pinia is used in setup function.
Reproduction
https://stackblitz.com/edit/vitejs-vite-erhcjk
Steps to reproduce the bug
Open the reproduction link and see the terminal of devtool
Expected behavior
Should not throw any error
Actual behavior
Additional information
Doesn't meet this issue with Vue 2.6 +
@vue/composition-api
The text was updated successfully, but these errors were encountered: