Skip to content

Commit b981e2d

Browse files
committed
suppress warnings during vm instantiation
1 parent 20b0c36 commit b981e2d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ class Store {
3232
dispatch.apply(this, args)
3333
}
3434
// use a Vue instance to store the state tree
35+
// suppress warnings just in case the user has added
36+
// some funky global mixins
37+
const silent = Vue.config.silent
38+
Vue.config.silent = true
3539
this._vm = new Vue({
3640
data: state
3741
})
42+
Vue.config.silent = silent
3843
this._setupModuleState(state, modules)
3944
this._setupModuleMutations(modules)
4045
this._setupMiddlewares(middlewares, state)

0 commit comments

Comments
 (0)