-
Notifications
You must be signed in to change notification settings - Fork 434
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
When Vue has some other global mixins, 'mixins' helper could be dangerous #291
Comments
Isn't it the problem that Vue.js does not correctly dedupe the global mixin? It looks happen when we use |
This was fixed via vuejs/vue#8870 |
It's not fixed by the way, versions:
When using |
@heihachi88 It's a core repo bug and is fixed in v2.6.0. There are also some followups in some next patch versions. |
I have added a minimal demo in test/test.ts
Global mixin is very common in Vue plugins and real-world projects. With current implementation of 'mixins' helper( or of
Vue.extend({ mixins: VueConstructor<any>[] })
), there might be some subtle unexpected results.For example, I have found a vue-i18n caused memory leak in work project
src/mixin.js
src/index.js
The text was updated successfully, but these errors were encountered: