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 f61ba18 commit 6c0273cCopy full SHA for 6c0273c
src/middlewares/devtool.js
@@ -7,11 +7,8 @@ export default {
7
if (!hook) return
8
hook.emit('vuex:init', store)
9
hook.on('vuex:travel-to-state', targetState => {
10
- const currentState = store._vm._data
11
store._dispatching = true
12
- Object.keys(targetState).forEach(key => {
13
- currentState[key] = targetState[key]
14
- })
+ store._vm.state = targetState
15
store._dispatching = false
16
})
17
},
0 commit comments