-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
useMounted does not work in vue2.7 #3803
Comments
+1 |
+1 when using useWindowSize |
After updating to 10.9.0, i still seem to be experiencing it with
|
|
应该设置为void 0 |
准确的是不是还是应该传 |
useDark, useClipboard still have problem [Vue warn]: onMounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). |
Yup, still spams |
useFullscreen still have problem |
When to release? |
Describe the bug
由于getCurrentInstance()在vue2.7和vue3获取的instance实例结果不同,在vue2.7中 onMounted第二个参数的值应该为instance?.proxy,设置为instance会导致报错,由于vue-demi中的onMounted的参数类型不支持ComponentPublicInstance,先设置为null保证在vue2.7中可以正常运行
Reproducti
on
https://github.com/vueuse/vueuse/releases/tag/v10.8.0
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: