Skip to content

Commit c9cb98f

Browse files
author
Guillaume Chau
committed
fix(vuex): load button should skip debounce
1 parent 11713c5 commit c9cb98f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/app-frontend/src/views/vuex/VuexStateInspector.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
data-id="load-vuex-state"
107107
icon-left="arrow_forward"
108108
class="accent flat"
109-
@click="loadState()"
109+
@click="loadStateNow()"
110110
>
111111
Load state
112112
</VueButton>
@@ -313,9 +313,13 @@ export default {
313313
}, 250),
314314
315315
loadState: debounce(function () {
316+
this.loadStateNow()
317+
}, 300),
318+
319+
loadStateNow () {
316320
const history = this.filteredHistory
317321
this.inspect(history[history.length - 1])
318-
}, 300),
322+
},
319323
320324
onMutation () {
321325
if (this.$shared.vuexAutoload) {

0 commit comments

Comments
 (0)