We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41a5cbd commit b64766bCopy full SHA for b64766b
src/mixin.js
@@ -2,8 +2,7 @@ export default function (Vue) {
2
const version = Number(Vue.version.split('.')[0])
3
4
if (version >= 2) {
5
- const usesInit = Vue.config._lifecycleHooks.indexOf('init') > -1
6
- Vue.mixin(usesInit ? { init: vuexInit } : { beforeCreate: vuexInit })
+ Vue.mixin({ beforeCreate: vuexInit })
7
} else {
8
// override init and inject vuex init procedure
9
// for 1.x backwards compatibility.
0 commit comments