vuejs / vue

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
http://v2.vuejs.org
MIT License
207.98k stars 33.68k forks source link

Memory leaks in vue2.0 framework #5384

Closed brunoduan closed 7 years ago

brunoduan commented 7 years ago

If we inject an object into VueComponent as below:

var store = new _vuex2.default.Store({
actions: _extends({}, appActions),
modules: {
app: _app2.default
}
});
new Vue(Vue.util.extend({ el: '#root', store: store }, _Qiqu2.default));

the Vue framework would remain all the references of Store objects and cause memory leaks happen.

We can get a compelete example bundle for reproducing the issue here

Run this bundle on Weex platform and lets take heap snapshots and compare them as below: Store leak

From above we would found out:

vue-bot commented 7 years ago

Hello, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue - thank you!