Skip to content

Commit 9d0abf8

Browse files
committed
refactor: drop auto install feature
Vue 3 requires to create a new app anyway.
1 parent 9a79829 commit 9d0abf8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/store.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,7 @@ export function createStore (options) {
1010

1111
export class Store {
1212
constructor (options = {}) {
13-
// TODO: Bring back this one if needed.
14-
//
15-
// Auto install if it is not done yet and `window` has `Vue`.
16-
// To allow users to avoid auto-installation in some cases,
17-
// this code should be placed here. See #731
18-
// if (!Vue && typeof window !== 'undefined' && window.Vue) {
19-
// install(window.Vue)
20-
// }
21-
2213
if (process.env.NODE_ENV !== 'production') {
23-
// TODO: Maybe we can remove this depending on the new implementation.
24-
// assert(Vue, `must call Vue.use(Vuex) before creating a store instance.`)
2514
assert(typeof Promise !== 'undefined', `vuex requires a Promise polyfill in this browser.`)
2615
assert(this instanceof Store, `store must be called with the new operator.`)
2716
}

0 commit comments

Comments
 (0)