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 b3207e7 commit 116ded5Copy full SHA for 116ded5
src/devtools/views/vuex/module.js
@@ -31,11 +31,15 @@ const mutations = {
31
},
32
33
'RECEIVE_MUTATION' (state, entry) {
34
+ const inspectingLastMutation = state.inspectedIndex === state.history.length - 1
35
entry.id = uid++
36
state.history.push(entry)
37
if (!state.filter) {
- state.inspectedIndex = state.activeIndex = state.history.length - 1
38
- state.inspectedState = null
+ state.activeIndex = state.history.length - 1
39
+ if (inspectingLastMutation) {
40
+ state.inspectedIndex = state.activeIndex
41
+ state.inspectedState = null
42
+ }
43
}
44
45
0 commit comments