Skip to content

Commit 9a79829

Browse files
committed
refactor: withdraw double install check
Becasue Vue 3 already warns if we try to install store twice.
1 parent 4799e81 commit 9a79829

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/store.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import devtoolPlugin from './plugins/devtool'
44
import ModuleCollection from './module/module-collection'
55
import { forEachValue, isObject, isPromise, assert, partial } from './util'
66

7-
// let Vue // bind on install
8-
97
export function createStore (options) {
108
return new Store(options)
119
}
@@ -78,19 +76,6 @@ export class Store {
7876
}
7977

8078
install (app, injectKey) {
81-
// TODO: Removing double install check for now. Maybe we can bring this
82-
// feature back again if needed.
83-
//
84-
// if (Vue && _Vue === Vue) {
85-
// if (process.env.NODE_ENV !== 'production') {
86-
// console.error(
87-
// '[vuex] already installed. Vue.use(Vuex) should be called only once.'
88-
// )
89-
// }
90-
// return
91-
// }
92-
// Vue = _Vue
93-
9479
applyMixin(app, this, injectKey)
9580
}
9681

0 commit comments

Comments
 (0)