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 83c1aa5 commit c5f1c06Copy full SHA for c5f1c06
src/middlewares/devtool.js
@@ -8,9 +8,11 @@ export default {
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
})
15
+ store._dispatching = false
16
17
},
18
onMutation (mutation, state) {
0 commit comments