File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
packages/app-frontend/src/views/vuex Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,8 @@ export default {
155
155
' activeIndex' ,
156
156
' inspectedIndex' ,
157
157
' lastReceivedState' ,
158
- ' inspectedModule'
158
+ ' inspectedModule' ,
159
+ ' history'
159
160
]),
160
161
161
162
... mapGetters (' vuex' , [
@@ -311,16 +312,19 @@ export default {
311
312
}
312
313
}, 250 ),
313
314
314
- loadState () {
315
+ loadState: debounce ( function () {
315
316
const history = this .filteredHistory
316
317
this .inspect (history[history .length - 1 ])
317
- },
318
+ }, 300 ),
318
319
319
- onMutation: debounce ( function () {
320
+ onMutation () {
320
321
if (this .$shared .vuexAutoload ) {
321
- this .loadState ()
322
+ const unwatch = this .$watch (() => this .history .length , (value , oldValue ) => {
323
+ unwatch ()
324
+ this .loadState ()
325
+ })
322
326
}
323
- }, 300 ),
327
+ },
324
328
325
329
onVuexInit () {
326
330
if (this .$shared .vuexAutoload ) {
You can’t perform that action at this time.
0 commit comments